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, Service, ServiceMBean, SubDeployer, SubDeployerExt, SubDeployerExtMBean, SubDeployerMBean, XSLSubDeployerMBean
- public class XSLSubDeployer
- extends SubDeployerSupport
- implements XSLSubDeployerMBean
XSLSubDeployer
- Version:
- $Revision: 1.17.4.4 $
- 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 interface:
SubDeployerMBean
- The
accepts
method is called by MainDeployer
to determine which deployer is suitable for a DeploymentInfo.
- 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 interface:
SubDeployerMBean
- The
init
method lets the deployer set a few
properties of the DeploymentInfo, such as the watch url.
- Specified by:
init
in interface SubDeployerMBean
- Overrides:
init
in class SubDeployerSupport
- Throws:
DeploymentException
create
public void create(DeploymentInfo di)
throws DeploymentException
- Description copied from interface:
SubDeployerMBean
- Set up the components of the deployment that do not
refer to other components.
- Specified by:
create
in interface SubDeployerMBean
- Overrides:
create
in class SubDeployerSupport
- Throws:
DeploymentException
start
public void start(DeploymentInfo di)
throws DeploymentException
- Description copied from interface:
SubDeployerMBean
- The
start
method sets up relationships
with other components.
- Specified by:
start
in interface SubDeployerMBean
- Overrides:
start
in class SubDeployerSupport
- Throws:
DeploymentException
stop
public void stop(DeploymentInfo di)
throws DeploymentException
- Description copied from interface:
SubDeployerMBean
- The
stop
method removes relationships
between components.
- Specified by:
stop
in interface SubDeployerMBean
- Overrides:
stop
in class SubDeployerSupport
- Throws:
DeploymentException
destroy
public void destroy(DeploymentInfo di)
throws DeploymentException
- Description copied from interface:
SubDeployerMBean
- The
destroy
method removes individual
components
- Specified by:
destroy
in interface SubDeployerMBean
- Overrides:
destroy
in class SubDeployerSupport
- Throws:
DeploymentException
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.