|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Configure
This interface describes the methods that the Core is expected to expose for clients to access configuration settings, and which this package supports.
This interface is one half of a pair, the other being ConfigurationOwner. Client code (code using the core) would be expected to use the interface described here to access the values of their settings. They should use ConfigurationOwner to access the configuration settings as a whole, and to make changes to settings.
| Method Summary | |
|---|---|
Group |
getGroup(java.lang.String name)
Retrieve a specific group by name. |
Parameter |
getParameter(java.lang.String name)
Retrieve a specific paramater by name. |
java.util.Properties |
getParametersAsProperties(java.lang.String name)
Retrieve a group of Parameters as Properties. |
java.lang.String |
getParameterValue(java.lang.String name)
Get the value of a parameter by name. |
java.lang.String |
getParameterValue(java.lang.String name,
java.lang.String defaultValue)
Return the value of a parameter or a default value if the parameter is undefined. |
| Method Detail |
|---|
Parameter getParameter(java.lang.String name)
name - Parameter name.
java.lang.String getParameterValue(java.lang.String name)
String x=getParameter("parameterName").getValue();
String x=getParameterValue("parameterName");
name - Name of the parameter to fetch the value for
java.lang.String getParameterValue(java.lang.String name,
java.lang.String defaultValue)
name - Name of the parameter to return the value of.defaultValue - If the parameter is undefined return this instead
default if it is undefined.Group getGroup(java.lang.String name)
name - The group's name.
java.util.Properties getParametersAsProperties(java.lang.String name)
name - The name of the group to convert.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||