org.jboss.deployment
Class EARDeployer
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.deployment.SubDeployerSupport
org.jboss.deployment.EARDeployer
- All Implemented Interfaces:
- javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, EARDeployerMBean, org.jboss.deployment.SubDeployer, org.jboss.deployment.SubDeployerExt, org.jboss.deployment.SubDeployerExtMBean, org.jboss.deployment.SubDeployerMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
public class EARDeployer
- extends org.jboss.deployment.SubDeployerSupport
- implements EARDeployerMBean
Enterprise Archive Deployer.
- Version:
- $Revision: 1.37.2.9 $
- Author:
- Marc Fleury, Scott.Stark@jboss.org
Nested classes/interfaces inherited from class org.jboss.deployment.SubDeployerSupport |
org.jboss.deployment.SubDeployerSupport.ClassConfiguration |
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.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 |
Method Summary |
void |
create(org.jboss.deployment.DeploymentInfo di)
|
void |
destroy(org.jboss.deployment.DeploymentInfo di)
Describe destroy method here. |
void |
init(org.jboss.deployment.DeploymentInfo di)
|
protected void |
initLoaderRepository(org.jboss.deployment.DeploymentInfo di,
Element loader)
Build the ear scoped repository |
boolean |
isCallByValue()
|
protected boolean |
isDeployable(String name,
URL url)
Add -ds.xml and -service.xml as legitimate deployables. |
boolean |
isIsolated()
|
protected void |
processNestedDeployments(org.jboss.deployment.DeploymentInfo di)
Override the default behavior of looking into the archive for deployables
as only those explicitly listed in the application.xml and jboss-app.xml
should be deployed. |
void |
setCallByValue(boolean callByValue)
|
void |
setIsolated(boolean isolated)
|
void |
start(org.jboss.deployment.DeploymentInfo di)
|
protected void |
startService()
|
void |
stop(org.jboss.deployment.DeploymentInfo di)
|
Methods inherited from class org.jboss.deployment.SubDeployerSupport |
accepts, addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, emitNotification, getEnhancedSuffixes, getRelativeOrder, getSuffixes, setEnhancedSuffixes, setRelativeOrder, setSuffixes, stopService |
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.SubDeployerExtMBean |
getEnhancedSuffixes, setEnhancedSuffixes |
Methods inherited from interface org.jboss.deployment.SubDeployerMBean |
accepts, getRelativeOrder, getServiceName, getSuffixes |
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 |
EARDeployer
public EARDeployer()
- Default CTOR
isIsolated
public boolean isIsolated()
- Specified by:
isIsolated
in interface EARDeployerMBean
- Returns:
- whether ear deployments should be isolated
setIsolated
public void setIsolated(boolean isolated)
- Specified by:
setIsolated
in interface EARDeployerMBean
- Parameters:
isolated
- whether ear deployments should be isolated
isCallByValue
public boolean isCallByValue()
- Specified by:
isCallByValue
in interface EARDeployerMBean
- Returns:
- whether ear deployments should be call by value
setCallByValue
public void setCallByValue(boolean callByValue)
- Specified by:
setCallByValue
in interface EARDeployerMBean
- Parameters:
callByValue
- whether ear deployments should be call by value
startService
protected void startService()
throws Exception
- Overrides:
startService
in class org.jboss.deployment.SubDeployerSupport
- Throws:
Exception
init
public void init(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Specified by:
init
in interface org.jboss.deployment.SubDeployer
- Specified by:
init
in interface org.jboss.deployment.SubDeployerMBean
- Overrides:
init
in class org.jboss.deployment.SubDeployerSupport
- Throws:
org.jboss.deployment.DeploymentException
create
public void create(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Specified by:
create
in interface org.jboss.deployment.SubDeployer
- Specified by:
create
in interface org.jboss.deployment.SubDeployerMBean
- Overrides:
create
in class org.jboss.deployment.SubDeployerSupport
- Throws:
org.jboss.deployment.DeploymentException
start
public void start(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Specified by:
start
in interface org.jboss.deployment.SubDeployer
- Specified by:
start
in interface org.jboss.deployment.SubDeployerMBean
- Overrides:
start
in class org.jboss.deployment.SubDeployerSupport
- Throws:
org.jboss.deployment.DeploymentException
stop
public void stop(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Specified by:
stop
in interface org.jboss.deployment.SubDeployer
- Specified by:
stop
in interface org.jboss.deployment.SubDeployerMBean
- Overrides:
stop
in class org.jboss.deployment.SubDeployerSupport
- Throws:
org.jboss.deployment.DeploymentException
destroy
public void destroy(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Describe
destroy
method here.
- Specified by:
destroy
in interface org.jboss.deployment.SubDeployer
- Specified by:
destroy
in interface org.jboss.deployment.SubDeployerMBean
- Overrides:
destroy
in class org.jboss.deployment.SubDeployerSupport
- Parameters:
di
- a DeploymentInfo
value
- Throws:
DeploymentException
- if an error occurs
initLoaderRepository
protected void initLoaderRepository(org.jboss.deployment.DeploymentInfo di,
Element loader)
throws Exception
- Build the ear scoped repository
- Parameters:
di
- the deployment info passed to deployloader
- the jboss-app/loader-repository element
- Throws:
Exception
isDeployable
protected boolean isDeployable(String name,
URL url)
- Add -ds.xml and -service.xml as legitimate deployables.
- Overrides:
isDeployable
in class org.jboss.deployment.SubDeployerSupport
processNestedDeployments
protected void processNestedDeployments(org.jboss.deployment.DeploymentInfo di)
- Override the default behavior of looking into the archive for deployables
as only those explicitly listed in the application.xml and jboss-app.xml
should be deployed.
- Overrides:
processNestedDeployments
in class org.jboss.deployment.SubDeployerSupport
- Parameters:
di
-
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.