public abstract class AbstractDeploymentUnitProcessor extends Object implements DeploymentUnitProcessor
Modifier and Type | Field and Description |
---|---|
protected boolean |
appclient
If this is an appclient we want to make the components as not installable, so we can still look up which EJB's are in
the deployment, but do not actual install them
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractDeploymentUnitProcessor(boolean appclient) |
Modifier and Type | Method and Description |
---|---|
void |
deploy(DeploymentPhaseContext phaseContext)
Perform a single step in processing the deployment phase.
|
protected static EjbJarDescription |
getEjbJarDescription(DeploymentUnit deploymentUnit) |
protected void |
processAnnotations(DeploymentUnit deploymentUnit,
CompositeIndex compositeIndex) |
protected abstract void |
processBeanMetaData(DeploymentUnit deploymentUnit,
org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData ejb) |
protected void |
processDeploymentDescriptor(DeploymentUnit deploymentUnit) |
void |
undeploy(DeploymentUnit context)
Undo the deployment processing.
|
protected final boolean appclient
protected AbstractDeploymentUnitProcessor(boolean appclient)
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 processingprotected static EjbJarDescription getEjbJarDescription(DeploymentUnit deploymentUnit)
protected void processAnnotations(DeploymentUnit deploymentUnit, CompositeIndex compositeIndex) throws DeploymentUnitProcessingException
protected abstract void processBeanMetaData(DeploymentUnit deploymentUnit, org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData ejb) throws DeploymentUnitProcessingException
protected void processDeploymentDescriptor(DeploymentUnit deploymentUnit) throws DeploymentUnitProcessingException
public 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 contextCopyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.