Class ResourceDefinitionAnnotationProcessor

java.lang.Object
org.jboss.as.ee.resource.definition.ResourceDefinitionAnnotationProcessor
All Implemented Interfaces:
org.jboss.as.server.deployment.DeploymentUnitProcessor

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
  • Constructor Details

    • ResourceDefinitionAnnotationProcessor

      public ResourceDefinitionAnnotationProcessor()
  • Method Details

    • 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 instance
      propertyReplacer - 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 interface org.jboss.as.server.deployment.DeploymentUnitProcessor
      Throws:
      org.jboss.as.server.deployment.DeploymentUnitProcessingException