|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.system.ServiceConfigurator
Service configuration helper.
Constructor Summary | |
ServiceConfigurator(MBeanServer (src) server,
ServiceController (src) serviceController,
ServiceCreator (src) serviceCreator)
|
Method Summary | |
protected void |
configure(ObjectName (src) objectName,
ObjectName (src) loaderName,
org.w3c.dom.Element mbeanElement,
java.util.List mbeans)
The configure method configures an mbean based on the xml
element configuration passed in. |
java.lang.String |
getConfiguration(ObjectName (src) [] objectNames)
Builds a string that consists of the configuration elements of the currently running MBeans registered in the server. |
java.util.List |
install(org.w3c.dom.Element config,
ObjectName (src) loaderName)
The install method iterates through the mbean tags in the
supplied xml configuration and creates and configures the mbeans shown. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServiceConfigurator(MBeanServer (src) server, ServiceController (src) serviceController, ServiceCreator (src) serviceCreator)
Method Detail |
public java.util.List install(org.w3c.dom.Element config, ObjectName (src) loaderName) throws DeploymentException (src)
install
method iterates through the mbean tags in the
supplied xml configuration and creates and configures the mbeans shown.
The mbean configuration can be nested.
config
- the xml Element
containing the configuration of
the mbeans to create and configure.
List
of ObjectNames of created mbeans.
DeploymentException (src)
- if an error occursprotected void configure(ObjectName (src) objectName, ObjectName (src) loaderName, org.w3c.dom.Element mbeanElement, java.util.List mbeans) throws java.lang.Exception
configure
method configures an mbean based on the xml
element configuration passed in. Three formats are supported:
<attribute name="(name)">(value)</attribute> <depends
optional-attribute-name="(name)">(object name of mbean
referenced)</depends> <depends-list optional-attribute-name="(name)">
[list of] </depends-list-element>(object name)</depends-list-element>
</depends-list>
The last two can include nested mbean configurations or ObjectNames.
SIDE-EFFECT: adds all mbeans this one depends on to the ServiceContext
structures.
mbeanElement
- an Element
value
java.lang.Exception
- if an error occurspublic java.lang.String getConfiguration(ObjectName (src) [] objectNames) throws java.lang.Exception
java.lang.Exception
- Failed to construct configuration.
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |