org.jboss.deployment
Class XSLSubDeployer
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.deployment.SubDeployerSupport
org.jboss.deployment.XSLSubDeployer
- All Implemented Interfaces:
- javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, SubDeployer, SubDeployerExt, SubDeployerExtMBean, SubDeployerMBean, XSLSubDeployerMBean, Service, ServiceMBean
public class XSLSubDeployer
- extends SubDeployerSupport
- implements XSLSubDeployerMBean
XSLSubDeployer
- Version:
- $Revision: 1.17.4.7 $
- Author:
- David Jencks, Juha Lindfors, Adrian Brock
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Fields inherited from interface org.jboss.deployment.SubDeployer |
CREATE_NOTIFICATION, DESTROY_NOTIFICATION, INIT_NOTIFICATION, RELATIVE_ORDER_100, RELATIVE_ORDER_200, RELATIVE_ORDER_300, RELATIVE_ORDER_400, RELATIVE_ORDER_500, RELATIVE_ORDER_600, RELATIVE_ORDER_700, RELATIVE_ORDER_800, RELATIVE_ORDER_900, START_NOTIFICATION, STOP_NOTIFICATION |
Methods inherited from class org.jboss.deployment.SubDeployerSupport |
addDeployableFiles, addDeployableJar, deployUrl, emitNotification, getEnhancedSuffixes, getRelativeOrder, getSuffixes, isDeployable, processNestedDeployments, setEnhancedSuffixes, setRelativeOrder, setSuffixes, startService, stopService |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, destroy, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xslUrl
protected String xslUrl
packageSuffix
protected String packageSuffix
ddSuffix
protected String ddSuffix
dbf
protected DocumentBuilderFactory dbf
delegateName
protected javax.management.ObjectName delegateName
delegate
protected SubDeployer delegate
XSLSubDeployer
public XSLSubDeployer()
setXslUrl
public void setXslUrl(String xslUrl)
- Specified by:
setXslUrl
in interface XSLSubDeployerMBean
getXslUrl
public String getXslUrl()
- Specified by:
getXslUrl
in interface XSLSubDeployerMBean
setPackageSuffix
public void setPackageSuffix(String packageSuffix)
- Specified by:
setPackageSuffix
in interface XSLSubDeployerMBean
getPackageSuffix
public String getPackageSuffix()
- Specified by:
getPackageSuffix
in interface XSLSubDeployerMBean
setDdSuffix
public void setDdSuffix(String ddSuffix)
- Specified by:
setDdSuffix
in interface XSLSubDeployerMBean
getDdSuffix
public String getDdSuffix()
- Specified by:
getDdSuffix
in interface XSLSubDeployerMBean
setDelegateName
public void setDelegateName(javax.management.ObjectName delegateName)
- Specified by:
setDelegateName
in interface XSLSubDeployerMBean
getDelegateName
public javax.management.ObjectName getDelegateName()
- Specified by:
getDelegateName
in interface XSLSubDeployerMBean
getValidateDTDs
public boolean getValidateDTDs()
- Specified by:
getValidateDTDs
in interface XSLSubDeployerMBean
setValidateDTDs
public void setValidateDTDs(boolean validate)
- Specified by:
setValidateDTDs
in interface XSLSubDeployerMBean
createService
protected void createService()
throws Exception
- Description copied from class:
SubDeployerSupport
- The
createService
method is one of the ServiceMBean lifecyle operations.
(no jmx tag needed from superinterface)
- Overrides:
createService
in class SubDeployerSupport
- Throws:
Exception
- if an error occurs
destroyService
protected void destroyService()
throws Exception
- Description copied from class:
SubDeployerSupport
- Clean up.
- Overrides:
destroyService
in class SubDeployerSupport
- Throws:
Exception
accepts
public boolean accepts(DeploymentInfo di)
- Description copied from class:
SubDeployerSupport
- A default implementation that uses the suffixes registered
through either setSuffixes() or setEnhancedSuffixes(), to
decide if a module is deployable by this deployer.
If (according to DeploymentInfo) the deployment refers to
a directory, but not an xml or script deployment, then
the deployment suffix will be checked also against the
registered suffixes + "/".
- Specified by:
accepts
in interface SubDeployer
- Specified by:
accepts
in interface SubDeployerMBean
- Overrides:
accepts
in class SubDeployerSupport
- Parameters:
di
- the DeploymentInfo to check
- Returns:
- whether the deployer can handle the deployment
init
public void init(DeploymentInfo di)
throws DeploymentException
- Description copied from class:
SubDeployerSupport
- Sub-classes should override this method to provide
custom 'init' logic.
This method calls the processNestedDeployments(di) method and then
issues a JMX notification of type SubDeployer.INIT_NOTIFICATION.
This behaviour can overridden by concrete sub-classes. If further
initialization needs to be done, and you wish to preserve the
functionality, be sure to call super.init(di) at the end of your
implementation.
- Specified by:
init
in interface SubDeployer
- Specified by:
init
in interface SubDeployerMBean
- Overrides:
init
in class SubDeployerSupport
- Parameters:
di
- a DeploymentInfo
value
- Throws:
DeploymentException
- if an error occurs
create
public void create(DeploymentInfo di)
throws DeploymentException
- Description copied from class:
SubDeployerSupport
- Sub-classes should override this method to provide
custom 'create' logic.
This method issues a JMX notification of type SubDeployer.CREATE_NOTIFICATION.
- Specified by:
create
in interface SubDeployer
- Specified by:
create
in interface SubDeployerMBean
- Overrides:
create
in class SubDeployerSupport
- Parameters:
di
- a DeploymentInfo
value
- Throws:
DeploymentException
- if an error occurs
start
public void start(DeploymentInfo di)
throws DeploymentException
- Description copied from class:
SubDeployerSupport
- Sub-classes should override this method to provide
custom 'start' logic.
This method issues a JMX notification of type SubDeployer.START_NOTIFICATION.
- Specified by:
start
in interface SubDeployer
- Specified by:
start
in interface SubDeployerMBean
- Overrides:
start
in class SubDeployerSupport
- Parameters:
di
- a DeploymentInfo
value
- Throws:
DeploymentException
- if an error occurs
stop
public void stop(DeploymentInfo di)
throws DeploymentException
- Description copied from class:
SubDeployerSupport
- Sub-classes should override this method to provide
custom 'stop' logic.
This method issues a JMX notification of type SubDeployer.START_NOTIFICATION.
- Specified by:
stop
in interface SubDeployer
- Specified by:
stop
in interface SubDeployerMBean
- Overrides:
stop
in class SubDeployerSupport
- Parameters:
di
- a DeploymentInfo
value
- Throws:
DeploymentException
- if an error occurs
destroy
public void destroy(DeploymentInfo di)
throws DeploymentException
- Description copied from class:
SubDeployerSupport
- Sub-classes should override this method to provide
custom 'destroy' logic.
This method issues a JMX notification of type SubDeployer.DESTROY_NOTIFICATION.
- Specified by:
destroy
in interface SubDeployer
- Specified by:
destroy
in interface SubDeployerMBean
- Overrides:
destroy
in class SubDeployerSupport
- Parameters:
di
- a DeploymentInfo
value
- Throws:
DeploymentException
- if an error occurs
setParameters
protected void setParameters(Transformer trans)
throws TransformerException
- Throws:
TransformerException
findDd
protected void findDd(DeploymentInfo di)
throws DeploymentException
- Throws:
DeploymentException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.