Class ManagedBeanAnnotationProcessor
java.lang.Object
org.jboss.as.ee.managedbean.processors.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 complementary spec additions (ex. Jakarta Enterprise Beans).- Author:
- John E. Bailey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeploy(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext) Check the deployment annotation index for all classes with the @ManagedBean annotation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.server.deployment.DeploymentUnitProcessor
undeploy
-
Constructor Details
-
ManagedBeanAnnotationProcessor
public ManagedBeanAnnotationProcessor()
-
-
Method Details
-
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:
deployin interfaceorg.jboss.as.server.deployment.DeploymentUnitProcessor- Parameters:
phaseContext- the deployment unit context- Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException- if the annotation is applied to something other than a class
-