|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Initializable
An object that can be configured with parameters.
Method Summary | ||
---|---|---|
boolean |
containsParameter(java.lang.String key)
Returns whether a parameter with specified key is in this Initializable |
|
|
getParam(java.lang.String name,
T defaultValue)
Method to read parameters from the Map of properties set by the init(Map) method. |
|
java.util.Map<java.lang.String,?> |
getParameters()
Returns the Map of parameters of this initializable |
|
void |
init()
This is a convenience method to initialize this Object with parameters. |
|
void |
init(java.util.Map<java.lang.String,?> parameters)
Initialize this object with parameters. |
Method Detail |
---|
void init(java.util.Map<java.lang.String,?> parameters)
parameters
- Map of parameters indexed by their String namesAgentXmlFactory
void init()
init(Map)
.
Subclasses can overwrite this method and initialize their parameters.
Make sure to call super.init() at the beginning of this method
so the init()
method of superclasses will run.
<T> T getParam(java.lang.String name, T defaultValue)
init(Map)
method.
T
- expected type of the parametername
- the parameter namedefaultValue
- the default value to be returned if the parameter doesn't exist
boolean containsParameter(java.lang.String key)
Initializable
key
- String
java.util.Map<java.lang.String,?> getParameters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |