public abstract class AbstractDeploymentDescriptorBindingsProcessor extends Object implements DeploymentUnitProcessor
Constructor and Description |
---|
AbstractDeploymentDescriptorBindingsProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
deploy(DeploymentPhaseContext phaseContext)
Perform a single step in processing the deployment phase.
|
protected abstract List<BindingConfiguration> |
processDescriptorEntries(DeploymentUnit deploymentUnit,
DeploymentDescriptorEnvironment environment,
ResourceInjectionTarget resourceInjectionTarget,
ComponentDescription componentDescription,
ClassLoader classLoader,
DeploymentReflectionIndex deploymentReflectionIndex,
EEApplicationClasses applicationClasses) |
protected Class<?> |
processInjectionTargets(ResourceInjectionTarget resourceInjectionTarget,
InjectionSource injectionSource,
ClassLoader classLoader,
DeploymentReflectionIndex deploymentReflectionIndex,
org.jboss.metadata.javaee.spec.ResourceInjectionMetaData entry,
Class<?> classType)
Processes the injection targets of a resource binding
|
void |
undeploy(DeploymentUnit context)
Undo the deployment processing.
|
public AbstractDeploymentDescriptorBindingsProcessor()
public final 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 List<BindingConfiguration> processDescriptorEntries(DeploymentUnit deploymentUnit, DeploymentDescriptorEnvironment environment, ResourceInjectionTarget resourceInjectionTarget, ComponentDescription componentDescription, ClassLoader classLoader, DeploymentReflectionIndex deploymentReflectionIndex, EEApplicationClasses applicationClasses) 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 contextprotected Class<?> processInjectionTargets(ResourceInjectionTarget resourceInjectionTarget, InjectionSource injectionSource, ClassLoader classLoader, DeploymentReflectionIndex deploymentReflectionIndex, org.jboss.metadata.javaee.spec.ResourceInjectionMetaData entry, Class<?> classType) throws DeploymentUnitProcessingException
injectionSource
- The injection source for the injection targetclassLoader
- The module class loaderdeploymentReflectionIndex
- The deployment reflection indexentry
- The resource with injection targetsclassType
- The expected type of the injection point, may be null if this is to be inferred from the injection targetDeploymentUnitProcessingException
- If the injection points could not be resolvedCopyright © 2015 JBoss by Red Hat. All rights reserved.