|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Configurator
An interface to configurators defining properties of objects through their exposed attributes and methods.
The names of properties are defined either directly as attribute names or by separating words with dots. E.g. the call
setDefaultContentType("text/html");
can be presented with the following two syntaxes:
DefaultContentType: text/html default.content.type: text/htmlNote that in the latter syntax the first letter is of separate words is automatically converted to uppercase.
The attribute name can have a prefix, which is given as a separate parameter to a tagged property setter. E.g. the call
setUserAgentPattern("Mozilla", "Mozilla");
can be presented with the following two syntaxes:
Mozilla.UserAgentPattern: Mozilla Mozilla.user.agent.pattern: Mozilla
| Method Summary | |
|---|---|
void |
configure(ObjectName target,
Configuration config)
Configures a registered MBean from a configuration. |
void |
configure(ObjectName target,
Properties props)
Configures a registered MBean from properties. |
| Method Detail |
|---|
void configure(ObjectName target,
Properties props)
throws ConfigurationException
target - the object name of the MBean.props - the properties.
ConfigurationException - on configuration errors.
void configure(ObjectName target,
Configuration config)
throws ConfigurationException
target - the object name of the MBean.config - the configuration.
ConfigurationException - on configuration errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||