|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object raccoon.core.types.ConfigurableManager
public class ConfigurableManager
The default implementation of the IConfigurableManager
interface.
Field Summary | |
---|---|
protected java.util.HashMap |
mParameters
The list of parameters |
Constructor Summary | |
---|---|
ConfigurableManager()
|
Method Summary | |
---|---|
void |
addProperty(java.lang.String pName,
java.lang.Class pType)
Adds the specified property to the list of configurable elements. |
void |
addProperty(java.lang.String pName,
java.lang.Class pType,
boolean pRequired)
Adds the specified property to the list of configurable elements. |
boolean |
isAssignable(java.lang.String pName,
java.lang.Object pValue)
Checks if the specified property can accept the value. |
boolean |
isChangeable(java.lang.String pName)
Checks if the specified property is changeable. |
boolean |
isInError()
Checks the state of this component. |
java.lang.String |
listRequiredComponents(java.lang.Class pClass)
Generates empty Service Manager configuration string. |
java.util.Iterator |
walkParameters()
Get an iterator on the properties of this manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap mParameters
Constructor Detail |
---|
public ConfigurableManager()
Method Detail |
---|
public void addProperty(java.lang.String pName, java.lang.Class pType)
ILoadable
.
addProperty
in interface IConfigurableManager
pName
- the name of the property, usually correlated to the java bean property.pType
- the type of the property, usually obtained via (Object Instance).Object.getClass()
public void addProperty(java.lang.String pName, java.lang.Class pType, boolean pRequired)
addProperty
in interface IConfigurableManager
pName
- the name of the property, usually correlated to the java bean property.pType
- the type of the property, usually obtained via (Object Instance).Object.getClass()
pRequired
- should the value of this property be assigned before this component is loaded.public boolean isChangeable(java.lang.String pName) throws ResourceNotFoundException
isChangeable
in interface IConfigurableManager
pName
- the name of the property, usually correlated to the java bean property.
true
if the value of the property can be modified.
ResourceNotFoundException
- if the property named pName
was not found.public boolean isAssignable(java.lang.String pName, java.lang.Object pValue) throws ResourceNotFoundException
isAssignable
in interface IConfigurableManager
pName
- the name of the property, usually correlated to the java bean property.pValue
- the value that is to be assigned to the property.
true
is the value can be assigned to the specified property.
ResourceNotFoundException
- if the property named pName
was not found.public boolean isInError()
isInError
in interface IBaseComponent
false
this component can never be in errorpublic java.util.Iterator walkParameters()
walkParameters
in interface IConfigurableManager
ConfigurableProperty
elements.public java.lang.String listRequiredComponents(java.lang.Class pClass) throws java.lang.Exception
listRequiredComponents
in interface IConfigurableManager
pClass
- the class that is to be analyzed.
java.lang.Exception
- should there be an error whilst analyzing the provided class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |