org.jboss.deployment
Class JARDeployer
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.deployment.SubDeployerSupport
org.jboss.deployment.JARDeployer
- All Implemented Interfaces:
- MBeanRegistration, NotificationBroadcaster, NotificationEmitter, JARDeployerMBean, SubDeployer, SubDeployerExt, SubDeployerExtMBean, SubDeployerMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, 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: 81033 $
- Author:
- Scott Stark, David Jencks, Dimitris Andreadis
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 |
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, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, stop, unsetKernelControllerContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JARDeployer
public JARDeployer()
- Default CTOR
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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.