Class SecurityRolesMergingProcessor

java.lang.Object
org.jboss.as.ejb3.deployment.processors.merging.AbstractMergingProcessor<EJBComponentDescription>
org.jboss.as.ejb3.deployment.processors.merging.SecurityRolesMergingProcessor
All Implemented Interfaces:
org.jboss.as.server.deployment.DeploymentUnitProcessor

public class SecurityRolesMergingProcessor extends AbstractMergingProcessor<EJBComponentDescription>
A processor which sets the EJBComponentDescription.setSecurityRoles(org.jboss.metadata.javaee.spec.SecurityRolesMetaData) with the principal to role mapping defined in the assembly descriptor section of the jboss-ejb3.xml via elements from urn:security-roles namespace.

Additionally, we also merge the security roles metadata from the ear.

Author:
Jaikiran Pai
  • Constructor Details

    • SecurityRolesMergingProcessor

      public SecurityRolesMergingProcessor()
  • Method Details

    • 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 ejbComponentDescription) 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