org.jboss.deployment
Class JARDeployer

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.JARDeployer
All Implemented Interfaces:
MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src) , SubDeployer (src)

public class JARDeployer
extends SubDeployerSupport (src)

This deployer exists to prevent deployment of packages whose deployers are not yet deployed. It will accept only jar/zip format files or directories that don't have a META-INF directory, or if they do, don't have any .xml files there. It assumes any package with a META-INF/*.xml file needs a specialized deployer. JARDeployerMBean.java is generated by XDoclet.


Nested Class Summary
 
Nested classes inherited from class org.jboss.deployment.SubDeployerSupport (src)
SubDeployerSupport.ClassConfiguration (src)
 
Field Summary
 
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
JARDeployer()
           
 
Method Summary
 boolean accepts(DeploymentInfo (src)  di)
          The accepts method is called by MainDeployer to determine which deployer is suitable for a DeploymentInfo.
 java.lang.String[] getDescriptorNames()
           
 void setDescriptorNames(java.lang.String[] descriptorNames)
           
protected  void stopService()
          Performs SubDeployer deregistration.
 
Methods inherited from class org.jboss.deployment.SubDeployerSupport (src)
addDeployableFiles, addDeployableJar, create, createService, deployUrl, destroy, destroyService, emitNotification, getRelativeOrder, getSuffixes, init, isDeployable, processNestedDeployments, setRelativeOrder, setSuffixes, start, startService, stop
 
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
 

Constructor Detail

JARDeployer

public JARDeployer()
Method Detail

getDescriptorNames

public java.lang.String[] getDescriptorNames()

setDescriptorNames

public void setDescriptorNames(java.lang.String[] descriptorNames)

stopService

protected void stopService()
Description copied from class: SubDeployerSupport (src)
Performs SubDeployer deregistration.

Overrides:
stopService in class SubDeployerSupport (src)

accepts

public boolean accepts(DeploymentInfo (src)  di)
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