|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--java.util.Properties | +--de.mud.jta.PluginConfig
Plugin configuration container. This class extends the Properties to allow specific duplications of plugins. To get the value of a property for a plugin simply call getProperty() with the plugin name, the unique id (which may be null) and the key you look for. A fallback value will be returned if it exists.
Maintainer: Matthias L. Jugel
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Fields inherited from class java.util.Properties |
defaults |
Constructor Summary | |
PluginConfig(java.util.Properties props)
|
Method Summary | |
java.lang.String |
getProperty(java.lang.String plugin,
java.lang.String key)
Get the property value for a certain plugin. |
java.lang.String |
getProperty(java.lang.String plugin,
java.lang.String id,
java.lang.String key)
Get property value for a certain plugin with the specified id. |
Methods inherited from class java.util.Properties |
getProperty, list, list, load, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PluginConfig(java.util.Properties props)
Method Detail |
public java.lang.String getProperty(java.lang.String plugin, java.lang.String id, java.lang.String key)
plugin
- the plugin to get the setup forid
- plugin id as specified in the config filekey
- the property key to search forpublic java.lang.String getProperty(java.lang.String plugin, java.lang.String key)
getProperty
in class java.util.Properties
plugin
- the plugin to get setup forkey
- the property key to search for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |