org.jboss.deployment
Class JARDeployer

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.deployment.SubDeployerSupport
              extended by org.jboss.deployment.JARDeployer
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, JARDeployerMBean, SubDeployer, SubDeployerExt, SubDeployerExtMBean, SubDeployerMBean, Service, ServiceMBean

public class JARDeployer
extends SubDeployerSupport
implements JARDeployerMBean

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.

Version:
$Revision: 1.11.6.6 $
Author:
Scott Stark, David Jencks, Dimitris Andreadis

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.deployment.SubDeployerSupport
SubDeployerSupport.ClassConfiguration
 
Field Summary
 
Fields inherited from class org.jboss.deployment.SubDeployerSupport
CONFIGURATION, enhancedSuffixes, mainDeployer, nativePrefix, nativeSuffix, relativeOrder, suffixes, tempDeployDir
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.deployment.JARDeployerMBean
OBJECT_NAME
 
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
 
Constructor Summary
JARDeployer()
          Default CTOR
 
Method Summary
 boolean accepts(DeploymentInfo di)
          The accepts method is called by MainDeployer to determine which deployer is suitable for a DeploymentInfo.
 String[] getDescriptorNames()
           
 void setDescriptorNames(String[] descriptorNames)
          The list of suffixes that define deployment descriptors which if found in an archive META-INF directory indicate non-jar deployments that should be ignored by the JARDeployer.
protected  void stopService()
          Performs SubDeployer deregistration.
 
Methods inherited from class org.jboss.deployment.SubDeployerSupport
addDeployableFiles, addDeployableJar, create, createService, deployUrl, destroy, destroyService, emitNotification, getEnhancedSuffixes, getRelativeOrder, getSuffixes, init, isDeployable, processNestedDeployments, setEnhancedSuffixes, setRelativeOrder, setSuffixes, start, startService, stop
 
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
 
Methods inherited from interface org.jboss.deployment.SubDeployerMBean
create, destroy, getRelativeOrder, getServiceName, getSuffixes, init, start, stop
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 
Methods inherited from interface org.jboss.deployment.SubDeployer
getServiceName
 

Constructor Detail

JARDeployer

public JARDeployer()
Default CTOR

Method Detail

getDescriptorNames

public String[] getDescriptorNames()
Specified by:
getDescriptorNames in interface JARDeployerMBean

setDescriptorNames

public void setDescriptorNames(String[] descriptorNames)
Description copied from interface: JARDeployerMBean
The list of suffixes that define deployment descriptors which if found in an archive META-INF directory indicate non-jar deployments that should be ignored by the JARDeployer.

Specified by:
setDescriptorNames in interface JARDeployerMBean

stopService

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

Overrides:
stopService in class SubDeployerSupport

accepts

public boolean accepts(DeploymentInfo di)
The accepts method is called by MainDeployer to determine which deployer is suitable for a DeploymentInfo.

Specified by:
accepts in interface SubDeployer
Specified by:
accepts in interface SubDeployerMBean
Overrides:
accepts in class SubDeployerSupport
Parameters:
di - a DeploymentInfo value
Returns:
a boolean value


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.