org.jboss.services.binding
Class AttributeMappingDelegate

java.lang.Object
  extended byorg.jboss.services.binding.AttributeMappingDelegate
All Implemented Interfaces:
ServicesConfigDelegate (src)

public class AttributeMappingDelegate
extends java.lang.Object
implements ServicesConfigDelegate (src)

An implementation of the ServicesConfigDelegate that expects a delegate-config element of the form: host-port-expr ... where the portAttrName is the attribute name of the mbean service to which the (int port) value should be applied and the hostAttrName is the attribute name of the mbean service to which the (String virtualHost) value should be applied. Any mbeanAttrName attribute reference has the corresponding value replaced with any ${host} and ${port} references with the associated host and port bindings.


Constructor Summary
AttributeMappingDelegate()
           
 
Method Summary
 void applyConfig(ServiceConfig (src)  config, MBeanServer (src)  server)
          Take the given config and map it onto the service specified in the config using JMX via the given server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeMappingDelegate

public AttributeMappingDelegate()
Method Detail

applyConfig

public void applyConfig(ServiceConfig (src)  config,
                        MBeanServer (src)  server)
                 throws java.lang.Exception
Take the given config and map it onto the service specified in the config using JMX via the given server.

Specified by:
applyConfig in interface ServicesConfigDelegate (src)
Throws:
java.lang.Exception