public class DefaultEarSubDeploymentsIsolationProcessor extends Object implements DeploymentUnitProcessor
DeploymentUnitProcessor
responsible for setting the default ear subdeployments isolation for each .ear
deployment unit. The default is picked up from the EE subsystem and set on the ModuleSpecification
of the deployment unit.
Unless, the specific deployment unit overrides the isolation via jboss-deployment-structure.xml, this
default value will be used to setup isolation of the subdeployments within a .ear.
Note: This deployer must run before the DeploymentStructureDescriptorParser
org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser}
User: Jaikiran Pai
Constructor and Description |
---|
DefaultEarSubDeploymentsIsolationProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
deploy(DeploymentPhaseContext phaseContext)
Perform a single step in processing the deployment phase.
|
void |
setEarSubDeploymentsIsolated(boolean earSubDeploymentsIsolated) |
void |
undeploy(DeploymentUnit context)
Undo the deployment processing.
|
public DefaultEarSubDeploymentsIsolationProcessor()
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException
DeploymentUnitProcessor
Data stored on the phase context only exists until the end of the phase. The deployment unit context
which is persistent is available via context.getDeploymentUnitContext()
.
deploy
in interface DeploymentUnitProcessor
phaseContext
- the deployment unit contextDeploymentUnitProcessingException
- if an error occurs during processingpublic void undeploy(DeploymentUnit context)
DeploymentUnitProcessor
deploy()
; however, if
the deploy()
method added services, they need not be removed here (they will automatically be removed).
This method should avoid throwing exceptions; any exceptions thrown are logged and ignored. Implementations of this
method cannot assume that the deployment process has (or has not) proceeded beyond the current processor, nor can they
assume that the undeploy()
method will be called from the same thread as the deploy()
method.
undeploy
in interface DeploymentUnitProcessor
context
- the deployment unit contextpublic void setEarSubDeploymentsIsolated(boolean earSubDeploymentsIsolated)
Copyright © 2013 JBoss by Red Hat. All rights reserved.