Class ManagedBeanAnnotationProcessor

  • All Implemented Interfaces:
    org.jboss.as.server.deployment.DeploymentUnitProcessor

    public class ManagedBeanAnnotationProcessor
    extends Object
    implements org.jboss.as.server.deployment.DeploymentUnitProcessor
    Deployment unit processor responsible for scanning a deployment to find classes with jakarta.annotation.ManagedBean annotations. Note: This processor only supports JSR-316 compliant managed beans. So it will not handle complimentary spec additions (ex. Jakarta Enterprise Beans).
    Author:
    John E. Bailey
    • Constructor Detail

      • ManagedBeanAnnotationProcessor

        public ManagedBeanAnnotationProcessor()
    • Method Detail

      • deploy

        public void deploy​(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)
                    throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
        Check the deployment annotation index for all classes with the @ManagedBean annotation. For each class with the annotation, collect all the required information to create a managed bean instance, and attach it to the context.
        Specified by:
        deploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor
        Parameters:
        phaseContext - the deployment unit context
        Throws:
        org.jboss.as.server.deployment.DeploymentUnitProcessingException