org.jboss.services.binding
Class AttributeMappingDelegate

java.lang.Object
  extended by org.jboss.services.binding.AttributeMappingDelegate
All Implemented Interfaces:
ServicesConfigDelegate

public class AttributeMappingDelegate
extends Object
implements ServicesConfigDelegate

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.

Version:
$Revision: 57210 $
Author:
Scott.Stark@jboss.org

Constructor Summary
AttributeMappingDelegate()
           
 
Method Summary
 void applyConfig(ServiceConfig config, javax.management.MBeanServer 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 config,
                        javax.management.MBeanServer server)
                 throws 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
Parameters:
config, - the service name and its config bindings
server, - the JMX server to use to apply the config
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.