public interface Configuration
| Modifier and Type | Method and Description |
|---|---|
<T> T |
loadObject(java.lang.Class<T> baseClass)
Loads the object with the class.
|
<T> T |
loadObject(java.lang.Class<T> baseClass,
java.lang.String key)
Loads the object with the class defined by the given key.
|
<T> java.util.Collection<T> |
loadObjects(java.lang.Class<T> baseClass,
java.lang.String root)
Loads all objects extending the
baseClass from all
files with the given configuration base. |
<T> java.util.Collection<T> loadObjects(java.lang.Class<T> baseClass,
java.lang.String root)
throws ConfigurationException
baseClass from all
files with the given configuration base.T - type of class to loadsbaseClass - base class of the return type.root - name of the root element.ConfigurationException - error loading the configuration<T> T loadObject(java.lang.Class<T> baseClass,
java.lang.String key)
throws ConfigurationException
T - Type of the object to load.baseClass - Base class of the return type.key - Key of the object to load.null if the
object could not be loaded.ConfigurationException - error loading the configuration<T> T loadObject(java.lang.Class<T> baseClass)
throws ConfigurationException
T - Type of the object to load.baseClass - Base class of the return type.null if the
object could not be loaded.ConfigurationException - error loading the configuration