public abstract class AbstractMergingProcessor<T extends EJBComponentDescription> extends Object implements DeploymentUnitProcessor
Constructor and Description |
---|
AbstractMergingProcessor(Class<T> typeParam) |
Modifier and Type | Method and Description |
---|---|
void |
deploy(DeploymentPhaseContext phaseContext)
Perform a single step in processing the deployment phase.
|
protected MethodIntf |
getMethodIntf(org.jboss.metadata.ejb.spec.MethodInterfaceType viewType) |
protected String[] |
getMethodParams(org.jboss.metadata.ejb.spec.MethodParametersMetaData methodParametersMetaData) |
protected abstract void |
handleAnnotations(DeploymentUnit deploymentUnit,
EEApplicationClasses applicationClasses,
DeploymentReflectionIndex deploymentReflectionIndex,
Class<?> componentClass,
T description)
Handle annotations relating to the component that have been found in the deployment.
|
protected abstract void |
handleDeploymentDescriptor(DeploymentUnit deploymentUnit,
DeploymentReflectionIndex deploymentReflectionIndex,
Class<?> componentClass,
T description)
Handle the deployment descriptor
|
void |
undeploy(DeploymentUnit context)
Undo the deployment processing.
|
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 abstract void handleAnnotations(DeploymentUnit deploymentUnit, EEApplicationClasses applicationClasses, DeploymentReflectionIndex deploymentReflectionIndex, Class<?> componentClass, T description) throws DeploymentUnitProcessingException
protected abstract void handleDeploymentDescriptor(DeploymentUnit deploymentUnit, DeploymentReflectionIndex deploymentReflectionIndex, Class<?> componentClass, T description) throws DeploymentUnitProcessingException
protected MethodIntf getMethodIntf(org.jboss.metadata.ejb.spec.MethodInterfaceType viewType)
protected String[] getMethodParams(org.jboss.metadata.ejb.spec.MethodParametersMetaData methodParametersMetaData)
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.