Class EJBViewMethodSecurityAttributesService

java.lang.Object
org.jboss.as.ejb3.security.service.EJBViewMethodSecurityAttributesService
All Implemented Interfaces:
org.jboss.msc.Service, org.jboss.msc.service.Service<EJBViewMethodSecurityAttributesService>, org.jboss.msc.value.Value<EJBViewMethodSecurityAttributesService>

public class EJBViewMethodSecurityAttributesService extends Object implements org.jboss.msc.service.Service<EJBViewMethodSecurityAttributesService>
A Service which can be used by other components like WS to get the security metadata associated with methods on a Jakarta Enterprise Beans view.
Author:
Jaikiran Pai
  • Constructor Details

  • Method Details

    • start

      public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException
      Specified by:
      start in interface org.jboss.msc.Service
      Throws:
      org.jboss.msc.service.StartException
    • stop

      public void stop(org.jboss.msc.service.StopContext stopContext)
      Specified by:
      stop in interface org.jboss.msc.Service
    • getValue

      Specified by:
      getValue in interface org.jboss.msc.value.Value<EJBViewMethodSecurityAttributesService>
      Throws:
      IllegalStateException
      IllegalArgumentException
    • getSecurityAttributes

      public EJBMethodSecurityAttribute getSecurityAttributes(Method viewMethod)
      Returns the EJBMethodSecurityAttribute associated with the passed view method. This method returns null if no security attribute is applicable for the passed method
      Parameters:
      viewMethod -
      Returns:
    • getServiceName

      public static org.jboss.msc.service.ServiceName getServiceName(String appName, String moduleName, String beanName, String viewClassName)
      Returns a ServiceName for the EJBViewMethodSecurityAttributesService
      Parameters:
      appName - The application name to which the bean belongs. Can be null if the bean is not deployed in a .ear
      moduleName - The module name to which the bean belongs
      beanName - The bean name
      viewClassName - The fully qualified class name of the EJB view
      Returns: