org.jboss.services.binding
Class XSLTFileDelegate
java.lang.Object
org.jboss.services.binding.XSLTFileDelegate
- All Implemented Interfaces:
- ServicesConfigDelegate (src)
- public class XSLTFileDelegate
- extends java.lang.Object
- implements ServicesConfigDelegate (src)
An implementation of the ServicesConfigDelegate
that transforms an xml file used by a service.
It retrieves the file location from the service,
tranforms the file and saves it on a temporary location,
which will be then applied to the service.
It excpects a delegate-config element of the following form:
The configName attribute specifies the JMX attribute,
which defines the XML file to be transformed.
Method Summary |
void |
applyConfig(ServiceConfig (src) config,
MBeanServer (src) server)
Transform the file specified in the given config,
transform it, temporarily save the result and apply 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 |
XSLTFileDelegate
public XSLTFileDelegate()
applyConfig
public void applyConfig(ServiceConfig (src) config,
MBeanServer (src) server)
throws java.lang.Exception
- Transform the file specified in the given config,
transform it, temporarily save the result and apply 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