|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.memphis.ccrg.lida.framework.initialization.InitializableImpl
public class InitializableImpl
Default implementation of Initializable
| Constructor Summary | |
|---|---|
InitializableImpl()
|
|
| 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 Initializable.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 for custom initialization. |
|
void |
init(java.util.Map<java.lang.String,?> params)
Initialize this object with parameters. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InitializableImpl()
| Method Detail |
|---|
public void init(java.util.Map<java.lang.String,?> params)
Initializable
init in interface Initializableparams - Map of parameters indexed by their String namesAgentXmlFactorypublic void init()
init(Map).
Subclasses can overwrite this method and call getParam(String, Object) to access parameters by name.
If this method is overridden, the init of the superclass must be called first.
init in interface Initializable
public <T> T getParam(java.lang.String name,
T defaultValue)
InitializableInitializable.init(Map) method.
getParam in interface InitializableT - expected type of the parametername - the parameter namedefaultValue - the default value to be returned if the parameter doesn't exist
public boolean containsParameter(java.lang.String key)
InitializableInitializable
containsParameter in interface Initializablekey - String
public java.util.Map<java.lang.String,?> getParameters()
Initializable
getParameters in interface Initializable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||