org.jboss.deployment
Class XSLSubDeployer

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.deployment.SubDeployerSupport (src) 
              extended byorg.jboss.deployment.XSLSubDeployer
All Implemented Interfaces:
MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src) , SubDeployer (src)

public class XSLSubDeployer
extends SubDeployerSupport (src)

XSLSubDeployer.java Created: Fri Jul 12 09:54:51 2002


Nested Class Summary
 
Nested classes inherited from class org.jboss.deployment.SubDeployerSupport (src)
SubDeployerSupport.ClassConfiguration (src)
 
Field Summary
protected  javax.xml.parsers.DocumentBuilderFactory dbf
           
protected  java.lang.String ddSuffix
           
protected  SubDeployer (src) delegate
           
protected  ObjectName (src) delegateName
           
protected  java.lang.String packageSuffix
           
protected  java.lang.String xslUrl
           
 
Fields inherited from class org.jboss.deployment.SubDeployerSupport (src)
CONFIGURATION, mainDeployer, nativePrefix, nativeSuffix, relativeOrder, suffixes, tempDeployDir
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.deployment.SubDeployer (src)
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
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
XSLSubDeployer()
           
 
Method Summary
 boolean accepts(DeploymentInfo (src)  di)
          The accepts method is called by MainDeployer to determine which deployer is suitable for a DeploymentInfo.
 void create(DeploymentInfo (src)  di)
          Sub-classes should override this method to provide custom 'create' logic.
protected  void createService()
          The createService method is one of the ServiceMBean lifecyle operations.
 void destroy(DeploymentInfo (src)  di)
          Sub-classes should override this method to provide custom 'destroy' logic.
protected  void destroyService()
          Clean up.
protected  void findDd(DeploymentInfo (src)  di)
           
 java.lang.String getDdSuffix()
          Describe getDdSuffix method here.
 ObjectName (src) getDelegateName()
          Describe getDelegateName method here.
 java.lang.String getPackageSuffix()
          Describe getPackageSuffix method here.
 java.lang.String getXslUrl()
          Describe getXslUrl method here.
 void init(DeploymentInfo (src)  di)
          Sub-classes should override this method to provide custom 'init' logic.
 void setDdSuffix(java.lang.String ddSuffix)
          Describe setDdSuffix method here.
 void setDelegateName(ObjectName (src)  delegateName)
          Describe setDelegateName method here.
 void setPackageSuffix(java.lang.String packageSuffix)
          Describe setPackageSuffix method here.
protected  void setParameters(javax.xml.transform.Transformer trans)
           
 void setXslUrl(java.lang.String xslUrl)
          Describe setXslUrl method here.
 void start(DeploymentInfo (src)  di)
          Sub-classes should override this method to provide custom 'start' logic.
 void stop(DeploymentInfo (src)  di)
          Sub-classes should override this method to provide custom 'stop' logic.
 
Methods inherited from class org.jboss.deployment.SubDeployerSupport (src)
addDeployableFiles, addDeployableJar, deployUrl, emitNotification, getRelativeOrder, getSuffixes, isDeployable, processNestedDeployments, setRelativeOrder, setSuffixes, startService, stopService
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, destroy, 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 (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.deployment.SubDeployer (src)
getServiceName
 

Field Detail

xslUrl

protected java.lang.String xslUrl

packageSuffix

protected java.lang.String packageSuffix

ddSuffix

protected java.lang.String ddSuffix

dbf

protected javax.xml.parsers.DocumentBuilderFactory dbf

delegateName

protected ObjectName (src)  delegateName

delegate

protected SubDeployer (src)  delegate
Constructor Detail

XSLSubDeployer

public XSLSubDeployer()
Method Detail

setXslUrl

public void setXslUrl(java.lang.String xslUrl)
Describe setXslUrl method here.

Parameters:
xslUrl - a String value

getXslUrl

public java.lang.String getXslUrl()
Describe getXslUrl method here.

Returns:
a String value

setPackageSuffix

public void setPackageSuffix(java.lang.String packageSuffix)
Describe setPackageSuffix method here.

Parameters:
packageSuffix - a String value

getPackageSuffix

public java.lang.String getPackageSuffix()
Describe getPackageSuffix method here.

Returns:
a String value

setDdSuffix

public void setDdSuffix(java.lang.String ddSuffix)
Describe setDdSuffix method here.

Parameters:
ddSuffix - a String value

getDdSuffix

public java.lang.String getDdSuffix()
Describe getDdSuffix method here.

Returns:
a String value

setDelegateName

public void setDelegateName(ObjectName (src)  delegateName)
Describe setDelegateName method here.

Parameters:
delegateName - an ObjectName value

getDelegateName

public ObjectName (src)  getDelegateName()
Describe getDelegateName method here.


createService

protected void createService()
                      throws java.lang.Exception
Description copied from class: SubDeployerSupport (src)
The createService method is one of the ServiceMBean lifecyle operations. (no jmx tag needed from superinterface)

Overrides:
createService in class SubDeployerSupport (src)
Throws:
java.lang.Exception - if an error occurs

destroyService

protected void destroyService()
                       throws java.lang.Exception
Description copied from class: SubDeployerSupport (src)
Clean up.

Overrides:
destroyService in class SubDeployerSupport (src)
Throws:
java.lang.Exception

accepts

public boolean accepts(DeploymentInfo (src)  di)
Description copied from interface: SubDeployer (src)
The accepts method is called by MainDeployer to determine which deployer is suitable for a DeploymentInfo.

Parameters:
di - a DeploymentInfo value
Returns:
a boolean value

init

public void init(DeploymentInfo (src)  di)
          throws DeploymentException (src) 
Description copied from class: SubDeployerSupport (src)
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 (src)
Overrides:
init in class SubDeployerSupport (src)
Throws:
DeploymentException (src)

create

public void create(DeploymentInfo (src)  di)
            throws DeploymentException (src) 
Description copied from class: SubDeployerSupport (src)
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 (src)
Overrides:
create in class SubDeployerSupport (src)
Throws:
DeploymentException (src)

start

public void start(DeploymentInfo (src)  di)
           throws DeploymentException (src) 
Description copied from class: SubDeployerSupport (src)
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 (src)
Overrides:
start in class SubDeployerSupport (src)
Throws:
DeploymentException (src)

stop

public void stop(DeploymentInfo (src)  di)
          throws DeploymentException (src) 
Description copied from class: SubDeployerSupport (src)
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 (src)
Overrides:
stop in class SubDeployerSupport (src)
Throws:
DeploymentException (src)

destroy

public void destroy(DeploymentInfo (src)  di)
             throws DeploymentException (src) 
Description copied from class: SubDeployerSupport (src)
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 (src)
Overrides:
destroy in class SubDeployerSupport (src)
Throws:
DeploymentException (src)

setParameters

protected void setParameters(javax.xml.transform.Transformer trans)
                      throws javax.xml.transform.TransformerException
Throws:
javax.xml.transform.TransformerException

findDd

protected void findDd(DeploymentInfo (src)  di)
               throws DeploymentException (src) 
Throws:
DeploymentException (src)