|
Kieker 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary<K,V> java.util.Hashtable<Object,Object> java.util.Properties kieker.common.configuration.Configuration
public final class Configuration
A Configuration
Constructor Summary | |
---|---|
Configuration()
|
|
Configuration(Properties defaults)
|
Method Summary | |
---|---|
static String |
convertToPath(String path)
Tries to simplify a given filesystem path. |
Object |
get(Object key)
Deprecated. |
boolean |
getBooleanProperty(String key)
|
int |
getIntProperty(String key)
|
long |
getLongProperty(String key)
|
String |
getPathProperty(String key)
|
Configuration |
getPropertiesStartingWith(String prefix)
Flattens the Properties hierarchies and returns an Configuration object containing only keys starting with the prefix. |
String |
getProperty(String key)
Deprecated. |
String |
getProperty(String key,
String defaultValue)
Deprecated. |
String[] |
getStringArrayProperty(String key)
Property values have to be split by '|'. |
String[] |
getStringArrayProperty(String key,
String split)
Property values have to be split by 'split'. |
String |
getStringProperty(String key)
|
Object |
put(Object key,
Object value)
Deprecated. |
void |
setDefaultConfiguration(Configuration defaultConfiguration)
You should know what you do if you use this method! Currently it is used for a (dirty) hack to implement writers. |
static String |
toProperty(Object[] values)
Converts the Object[] to a String split by '|'. |
Methods inherited from class java.util.Properties |
---|
list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, putAll, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Configuration()
public Configuration(Properties defaults)
Method Detail |
---|
public final String getStringProperty(String key)
public final boolean getBooleanProperty(String key)
public final int getIntProperty(String key)
public final long getLongProperty(String key)
public final String getPathProperty(String key)
public final String[] getStringArrayProperty(String key)
key
- public final String[] getStringArrayProperty(String key, String split)
split
- a regular expressionkey
- public static final String toProperty(Object[] values)
values
- public static final String convertToPath(String path)
path
-
public final Configuration getPropertiesStartingWith(String prefix)
Any implementation should probably be this: (where Configuration is the concrete class)
public final Configuration getPropertiesStartingWith(final String prefix) { return (Configuration) getPropertiesStartingWith(new Configuration(), prefix); }
prefix
- public final void setDefaultConfiguration(Configuration defaultConfiguration) throws IllegalAccessException
defaultConfiguration
-
IllegalAccessException
@Deprecated public final Object put(Object key, Object value)
Properties.setProperty(String, String)
instead!
put
in interface Map<Object,Object>
put
in class Hashtable<Object,Object>
@Deprecated public final Object get(Object key)
getStringProperty(String)
instead!
get
in interface Map<Object,Object>
get
in class Hashtable<Object,Object>
@Deprecated public final String getProperty(String key)
getStringProperty(String)
instead!
getProperty
in class Properties
@Deprecated public final String getProperty(String key, String defaultValue)
getProperty
in class Properties
|
Kieker 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |