Class ResourceDefinitionAnnotationProcessor
- java.lang.Object
-
- org.jboss.as.ee.resource.definition.ResourceDefinitionAnnotationProcessor
-
- All Implemented Interfaces:
org.jboss.as.server.deployment.DeploymentUnitProcessor
- Direct Known Subclasses:
ContextServiceDefinitionAnnotationProcessor
,ManagedExecutorDefinitionAnnotationProcessor
,ManagedScheduledExecutorDefinitionAnnotationProcessor
,ManagedThreadFactoryDefinitionAnnotationProcessor
public abstract class ResourceDefinitionAnnotationProcessor extends Object implements org.jboss.as.server.deployment.DeploymentUnitProcessor
The foundation to create processors wrt deployment of classes annotated with EE Resource Definitions, as defined by EE.5.18.- Author:
- Eduardo Martins
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResourceDefinitionAnnotationProcessor.AnnotationElement
Utility class to help handle resource definition annotation elements
-
Constructor Summary
Constructors Constructor Description ResourceDefinitionAnnotationProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
deploy(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)
protected abstract org.jboss.jandex.DotName
getAnnotationCollectionDotName()
Retrieves the annotation collection's dot name.protected abstract org.jboss.jandex.DotName
getAnnotationDotName()
Retrieves the annotation's dot name.protected abstract ResourceDefinitionInjectionSource
processAnnotation(org.jboss.jandex.AnnotationInstance annotationInstance, org.jboss.metadata.property.PropertyReplacer propertyReplacer)
Processes an annotation instance.
-
-
-
Method Detail
-
getAnnotationDotName
protected abstract org.jboss.jandex.DotName getAnnotationDotName()
Retrieves the annotation's dot name.- Returns:
-
getAnnotationCollectionDotName
protected abstract org.jboss.jandex.DotName getAnnotationCollectionDotName()
Retrieves the annotation collection's dot name.- Returns:
-
processAnnotation
protected abstract ResourceDefinitionInjectionSource processAnnotation(org.jboss.jandex.AnnotationInstance annotationInstance, org.jboss.metadata.property.PropertyReplacer propertyReplacer) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
Processes an annotation instance.- Parameters:
annotationInstance
- the annotation instancepropertyReplacer
- the property replacer which the processor may use to resolve annotation element values- Returns:
- a resource definition injection source
- Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException
-
deploy
public void deploy(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
- Specified by:
deploy
in interfaceorg.jboss.as.server.deployment.DeploymentUnitProcessor
- Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException
-
-