|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ocltf.common.Configuration
Finds and loads Configuration objects
Method Summary | |
java.lang.String |
findPath(java.lang.Class forClass)
Returns the path to the configuration file |
static Configuration |
getInstance(java.lang.Class forClass)
Returns an instance of this Configuration for the specified forClass |
java.util.Iterator |
getKeys()
Get the list of the keys contained in the configuration repository. |
java.util.Iterator |
getKeys(java.lang.String prefix)
Get the list of the keys contained in the configuration repository that match the specified prefix. |
java.lang.String |
getOptionalString(java.lang.String key)
Retrieves the property as a String |
java.lang.String[] |
getOptionalStringArray(java.lang.String key)
Retrieves the property has a array of Strings |
java.lang.String |
getPath()
Returns the path to the file for this Configuration |
java.lang.String |
getRequiredString(java.lang.String key)
Retrieves the property has a string. |
java.lang.String[] |
getRequiredStringArray(java.lang.String key)
Retrieves the property has a array of Strings |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Configuration getInstance(java.lang.Class forClass)
forClass
-
public java.lang.String findPath(java.lang.Class forClass)
forClass
- the Class which the Configuration path is for.
public java.lang.String getOptionalString(java.lang.String key)
key
- the key for the property
public java.lang.String[] getOptionalStringArray(java.lang.String key)
key
- the key for the property
public java.lang.String[] getRequiredStringArray(java.lang.String key)
key
- the key for the property
public java.lang.String getRequiredString(java.lang.String key)
key
-
public java.util.Iterator getKeys(java.lang.String prefix)
prefix
- the prefix to look for.
public java.util.Iterator getKeys()
public java.lang.String getPath()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |