org.jboss.deployment
Class ClientDeployer
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.deployment.SubDeployerSupport (src)
org.jboss.deployment.ClientDeployer
- All Implemented Interfaces:
- MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src) , SubDeployer (src)
- public class ClientDeployer
- extends SubDeployerSupport (src)
An XMBean resource implementation of a deployer for j2ee application
client jars
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 |
Method Summary |
boolean |
accepts(DeploymentInfo (src) di)
This method looks to the deployment for a META-INF/application-client.xml
descriptor to identify a j2ee client jar. |
void |
create(DeploymentInfo (src) di)
Sub-classes should override this method to provide
custom 'create' logic. |
void |
destroy(DeploymentInfo (src) di)
Sub-classes should override this method to provide
custom 'destroy' logic. |
void |
start(DeploymentInfo (src) di)
Parse the application-client.xml and jboss-client.xml descriptors. |
protected void |
startService()
Performs SubDeployer registration. |
void |
stop(DeploymentInfo (src) di)
Sub-classes should override this method to provide
custom 'stop' logic. |
protected void |
stopService()
Implements the template method in superclass. |
Methods inherited from class org.jboss.deployment.SubDeployerSupport (src) |
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, emitNotification, getRelativeOrder, getSuffixes, init, isDeployable, processNestedDeployments, setRelativeOrder, setSuffixes |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientDeployer
public ClientDeployer()
startService
protected void startService()
throws java.lang.Exception
- Description copied from class:
SubDeployerSupport (src)
- Performs SubDeployer registration.
- Overrides:
startService
in class SubDeployerSupport (src)
- Throws:
java.lang.Exception
stopService
protected void stopService()
throws java.lang.Exception
- Implements the template method in superclass. This method stops all the
applications in this server.
- Overrides:
stopService
in class SubDeployerSupport (src)
- Throws:
java.lang.Exception
accepts
public boolean accepts(DeploymentInfo (src) di)
- This method looks to the deployment for a META-INF/application-client.xml
descriptor to identify a j2ee client jar.
- Parameters:
di
- The deployment info instance for the jar
- Returns:
- true if the deployment is a j2ee client jar, false otherwise
create
public void create(DeploymentInfo (src) di)
throws DeploymentException (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)
- Parse the application-client.xml and jboss-client.xml descriptors.
- Specified by:
start
in interface SubDeployer (src)
- Overrides:
start
in class SubDeployerSupport (src)
- Parameters:
di
- the application client jar deployment info
- Throws:
DeploymentException (src)
stop
public void stop(DeploymentInfo (src) di)
throws DeploymentException (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)
- 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)