public class ResourceInjectionAnnotationParsingProcessor extends Object implements DeploymentUnitProcessor
ComponentDescription
instance to configure
required resource injection configurations.Modifier and Type | Field and Description |
---|---|
static Map<String,String> |
FIXED_LOCATIONS |
static Set<String> |
RESOURCE_REF_ENTRIES |
static Set<String> |
SIMPLE_ENTRIES |
Constructor and Description |
---|
ResourceInjectionAnnotationParsingProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
deploy(DeploymentPhaseContext phaseContext)
Perform a single step in processing the deployment phase.
|
protected void |
process(DeploymentPhaseContext phaseContext,
EEModuleClassDescription classDescription,
org.jboss.jandex.AnnotationInstance annotation,
String injectionType,
String localContextName,
InjectionTarget targetDescription,
EEModuleDescription eeModuleDescription,
org.jboss.modules.Module module,
EEApplicationClasses applicationClasses) |
protected void |
processClassResource(DeploymentPhaseContext phaseContext,
String name,
String type,
EEModuleClassDescription classDescription,
org.jboss.jandex.AnnotationInstance annotation,
EEModuleDescription eeModuleDescription,
org.jboss.modules.Module module,
EEApplicationClasses applicationClasses) |
protected void |
processFieldResource(DeploymentPhaseContext phaseContext,
org.jboss.jandex.FieldInfo fieldInfo,
String name,
String type,
EEModuleClassDescription classDescription,
org.jboss.jandex.AnnotationInstance annotation,
EEModuleDescription eeModuleDescription,
org.jboss.modules.Module module,
EEApplicationClasses applicationClasses) |
protected void |
processMethodResource(DeploymentPhaseContext phaseContext,
org.jboss.jandex.MethodInfo methodInfo,
String name,
String type,
EEModuleClassDescription classDescription,
org.jboss.jandex.AnnotationInstance annotation,
EEModuleDescription eeModuleDescription,
org.jboss.modules.Module module,
EEApplicationClasses applicationClasses) |
void |
undeploy(DeploymentUnit context)
Undo the deployment processing.
|
public ResourceInjectionAnnotationParsingProcessor()
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 contextprotected void processFieldResource(DeploymentPhaseContext phaseContext, org.jboss.jandex.FieldInfo fieldInfo, String name, String type, EEModuleClassDescription classDescription, org.jboss.jandex.AnnotationInstance annotation, EEModuleDescription eeModuleDescription, org.jboss.modules.Module module, EEApplicationClasses applicationClasses) throws DeploymentUnitProcessingException
protected void processMethodResource(DeploymentPhaseContext phaseContext, org.jboss.jandex.MethodInfo methodInfo, String name, String type, EEModuleClassDescription classDescription, org.jboss.jandex.AnnotationInstance annotation, EEModuleDescription eeModuleDescription, org.jboss.modules.Module module, EEApplicationClasses applicationClasses) throws DeploymentUnitProcessingException
protected void processClassResource(DeploymentPhaseContext phaseContext, String name, String type, EEModuleClassDescription classDescription, org.jboss.jandex.AnnotationInstance annotation, EEModuleDescription eeModuleDescription, org.jboss.modules.Module module, EEApplicationClasses applicationClasses) throws DeploymentUnitProcessingException
protected void process(DeploymentPhaseContext phaseContext, EEModuleClassDescription classDescription, org.jboss.jandex.AnnotationInstance annotation, String injectionType, String localContextName, InjectionTarget targetDescription, EEModuleDescription eeModuleDescription, org.jboss.modules.Module module, EEApplicationClasses applicationClasses) throws DeploymentUnitProcessingException
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.