|
xmlBlaster 2.2.0 contributions API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I_Info
Hides configuration parameters and passes common objects.
To embed the DbWatcher into your project you need to write a plugin which implements this interface and forwards all calls to you configuration framework.
Field Summary | |
---|---|
static java.lang.String |
ID
This is the key used to identify this instance of the info object. |
static java.lang.String |
JMX_PREFIX
|
Method Summary | |
---|---|
java.lang.String |
get(java.lang.String key,
java.lang.String def)
Access a string environment setting. |
boolean |
getBoolean(java.lang.String key,
boolean def)
Access an environment setting of type boolean. |
int |
getInt(java.lang.String key,
int def)
Access an environment setting of type int. |
java.util.Set |
getKeys()
Gets the keys of the entries stored. |
long |
getLong(java.lang.String key,
long def)
Access an environment setting of type long. |
java.lang.Object |
getObject(java.lang.String key)
Access the remembered object. |
java.util.Set |
getObjectKeys()
Gets the keys of the objects registered. |
java.lang.String |
getRaw(java.lang.String key)
Returns the value associated to this key. |
void |
put(java.lang.String key,
java.lang.String value)
Put key/value to environment. |
java.lang.Object |
putObject(java.lang.String key,
java.lang.Object o)
Store an object. |
void |
putRaw(java.lang.String key,
java.lang.String value)
Put key/value to environment. |
Field Detail |
---|
static final java.lang.String JMX_PREFIX
static final java.lang.String ID
Method Detail |
---|
java.lang.String getRaw(java.lang.String key)
key
-
java.lang.String get(java.lang.String key, java.lang.String def)
key
- The parameter keydef
- The default used if key is not found
void putRaw(java.lang.String key, java.lang.String value)
key
- The parameter keyvalue
- The parameter value, if null the parameter is removed.
java.lang.NullPointerException
- if key is null.void put(java.lang.String key, java.lang.String value)
key
- The parameter keyvalue
- The parameter value, if null the parameter is removed.
java.lang.NullPointerException
- if key is null.long getLong(java.lang.String key, long def)
key
- The parameter keydef
- The default used if key is not found
int getInt(java.lang.String key, int def)
key
- The parameter keydef
- The default used if key is not found
boolean getBoolean(java.lang.String key, boolean def)
key
- The parameter keydef
- The default used if key is not found
java.lang.Object putObject(java.lang.String key, java.lang.Object o)
key
- The object keyo
- The object to remember or null to remove it
java.lang.Object getObject(java.lang.String key)
key
- The object key
java.util.Set getKeys()
java.util.Set getObjectKeys()
|
xmlBlaster 2.2.0 contributions API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |