Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » system » [javadoc | source]
org.jboss.system
public class: ServiceConfigurator [javadoc | source]
java.lang.Object
   org.jboss.system.ServiceConfigurator
Service configuration helper.
Constructor:
 public ServiceConfigurator(MBeanServer server,
    ServiceController serviceController,
    ServiceCreator serviceCreator) 
    Constructor
    Parameters:
    server - the mbean server
    serviceController - the servie controller
    serviceCreator - the service creator
Method from org.jboss.system.ServiceConfigurator Summary:
applyServiceConfig,   configure,   configure,   getConfiguration,   getConfiguration,   getElementContent,   install,   setServiceBinding
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.system.ServiceConfigurator Detail:
 public static  void applyServiceConfig(MBeanServer server,
    ObjectName objectName,
    ServiceBinding serviceBinding) throws Exception 
    Apply any service binding overrides
 public static  void configure(MBeanServer server,
    ServiceController controller,
    ObjectName objectName,
    ObjectName classLoaderName,
    Collection attrs) throws Exception 
    Configure an MBean
 public static  void configure(MBeanServer server,
    ServiceController controller,
    ObjectName objectName,
    ClassLoader cl,
    Collection attrs) throws Exception 
    Configure an MBean
 public String getConfiguration(ObjectName[] objectNames) throws Exception 
    Builds a string that consists of the configuration elements of the currently running MBeans registered in the server. TODO replace with more sophisticated mbean persistence mechanism.
 public static String getConfiguration(MBeanServer server,
    ServiceController serviceController,
    ObjectName[] objectNames) throws Exception 
    Builds a string that consists of the configuration elements of the currently running MBeans registered in the server.
 public static StringBuffer getElementContent(Element element) throws TransformerException, IOException 
    A utility method that transforms the contents of the argument element into a StringBuffer representation that can be reparsed. [FIXME] This is not a general DOMUtils method because of its funny contract. It does not support multiple child elements neither can it deal with text content.
 public List install(Element config,
    ObjectName loaderName) throws DeploymentException 
Deprecated! the - service controller no longer uses the service configurator and vice-versa

    The 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.
 public  void setServiceBinding(ServiceBinding serviceBinding) 
    Dynamically plug-in a ServiceBinding policy to possibly override the configuration of a service.