|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Provides access to configuration.
| Method Summary | |
Configuration |
getConfiguration(java.lang.Class configurationClass)
Returns the implementation for the given interface class. |
java.lang.Object |
getValue(java.lang.Class keyClass)
Returns the Object implementing a given interface. |
java.lang.Object |
getValue(java.lang.String key)
Returns the Object corresponding to the given configuration key. |
boolean |
hasConfiguration(java.lang.Class configurationClass)
Returns true, if there is a Configuration stored under the
given configuration key class. |
java.lang.Object |
requireValue(java.lang.Class keyClass)
Returns the Object implementing a given interface. |
| Method Detail |
public java.lang.Object getValue(java.lang.String key)
ConfigManager.
key - the key to the configuration entry (not null)
null.public java.lang.Object getValue(java.lang.Class keyClass)
Services.
keyClass - the class of the interface
null if there is no implementation registered for that interfacepublic java.lang.Object requireValue(java.lang.Class keyClass)
getValue(Class), throws an exception if the value
is not contained.
keyClass - the class of the interface
public boolean hasConfiguration(java.lang.Class configurationClass)
true, if there is a Configuration stored under the
given configuration key class.
java.lang.IllegalArgumentException - if the given class is nullpublic Configuration getConfiguration(java.lang.Class configurationClass)
java.lang.IllegalArgumentException - if the given class is null
java.util.NoSuchElementException - if no mapping is found for the given
interface class
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||