|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Configurable
This is an interface allowing objects and services to self-describe some of them parameters. This is useful when service implementations are configured using an interactive processus (such as a web wizard form ;-))
Method Summary | |
---|---|
ParameterDefinition[] |
getParameterDefinitions()
Get this object parameters definitions as an array |
java.util.List |
getParameterDefinitionsAsList()
Get this object parameters definitions as a list |
void |
setParameter(ParameterDefinition parameter,
java.lang.String parameterValue)
Set the value of a parameter using its definitions |
void |
setParameter(java.lang.String parameterName,
java.lang.String parameterValue)
Set the value of a parameter using its nama |
void |
setParameters(java.util.Properties parameters)
Convenient methods for setting all attributes values using a single method. |
Method Detail |
---|
java.util.List getParameterDefinitionsAsList()
ParameterDefinition
objectsParameterDefinition[] getParameterDefinitions()
ParameterDefinition
objectsvoid setParameter(java.lang.String parameterName, java.lang.String parameterValue) throws InvalidParameterException
parameterName
- The name of parameter so set value forparameterValue
- The value of the paramater
InvalidParameterException
- if this parameter is not supported by this objectvoid setParameter(ParameterDefinition parameter, java.lang.String parameterValue) throws InvalidParameterException
parameter
- The definition of the paramater to setparameterValue
- The value of the parameter
InvalidParameterException
- if this parameter is not supported by this objectvoid setParameters(java.util.Properties parameters) throws InvalidParameterException
parameters
- Properties where keys are parameter names
InvalidParameterException
- if one of these parameters is not supported by this object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |