Class MethodPermissionsMergingProcessor

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

    public class MethodPermissionsMergingProcessor
    extends AbstractMergingProcessor<EJBComponentDescription>
    Handles the RolesAllowed DenyAll PermitAll annotations

    Also processes the <method-permission> elements of an Jakarta Enterprise Beans and sets up appropriate security permissions on the Jakarta Enterprise Beans.

    This processor should be run *after* all the views of the Jakarta Enterprise Beans have been identified and set in the EJBComponentDescription

    Author:
    Stuart Douglas
    • Constructor Detail

      • MethodPermissionsMergingProcessor

        public MethodPermissionsMergingProcessor()
    • Method Detail

      • handleAnnotations

        protected void handleAnnotations​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit,
                                         EEApplicationClasses applicationClasses,
                                         org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex deploymentReflectionIndex,
                                         Class<?> componentClass,
                                         EJBComponentDescription description)
                                  throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
        Description copied from class: AbstractMergingProcessor
        Handle annotations relating to the component that have been found in the deployment. Will not be called if the deployment is metadata complete.
        Specified by:
        handleAnnotations in class AbstractMergingProcessor<EJBComponentDescription>
        Throws:
        org.jboss.as.server.deployment.DeploymentUnitProcessingException
      • handleDeploymentDescriptor

        protected void handleDeploymentDescriptor​(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit,
                                                  org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex deploymentReflectionIndex,
                                                  Class<?> componentClass,
                                                  EJBComponentDescription componentDescription)
                                           throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
        Description copied from class: AbstractMergingProcessor
        Handle the deployment descriptor
        Specified by:
        handleDeploymentDescriptor in class AbstractMergingProcessor<EJBComponentDescription>
        Throws:
        org.jboss.as.server.deployment.DeploymentUnitProcessingException