Class ApplicableMethodInformation<T>


  • public class ApplicableMethodInformation<T>
    extends Object
    Metadata store for method level information that can be applied to a method via various different deployment descriptor styles
    Author:
    Stuart Douglas
    • Constructor Detail

      • ApplicableMethodInformation

        public ApplicableMethodInformation​(String componentName,
                                           T defaultAttribute)
    • Method Detail

      • getAttribute

        public T getAttribute​(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf,
                              Method method)
      • getAttribute

        public T getAttribute​(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf,
                              Method method,
                              org.jboss.metadata.ejb.spec.MethodInterfaceType defaultMethodIntf)
      • getAllAttributes

        public List<T> getAllAttributes​(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf,
                                        Method method)
      • getViewAttribute

        public T getViewAttribute​(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf,
                                  Method method)
      • getClassLevelAttribute

        public T getClassLevelAttribute​(String className)
        Parameters:
        className - The class name
        Returns:
        The attribute that has been applied directly to the given class
      • setAttribute

        public void setAttribute​(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf,
                                 String className,
                                 T attribute)
        Style 1 (13.3.7.2.1 @1)
        Parameters:
        methodIntf - the method-intf the annotations apply to or null if Jakarta Enterprise Beans class itself
        attribute -
      • getAttributeStyle1

        public T getAttributeStyle1​(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf,
                                    String className)
      • setAttribute

        public void setAttribute​(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf,
                                 T transactionAttribute,
                                 String methodName)
        Style 2 (13.3.7.2.1 @2)
        Parameters:
        methodIntf - the method-intf the annotations apply to or null if Jakarta Enterprise Beans class itself
        transactionAttribute -
        methodName -
      • getAttributeStyle2

        public T getAttributeStyle2​(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf,
                                    String methodName)
      • setAttribute

        public void setAttribute​(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf,
                                 T transactionAttribute,
                                 String className,
                                 String methodName,
                                 String... methodParams)
        Style 3 (13.3.7.2.1 @3)
        Parameters:
        methodIntf - the method-intf the annotations apply to or null if Jakarta Enterprise Beans class itself
        transactionAttribute -
        methodName -
        methodParams -
      • getAttributeStyle3

        public T getAttributeStyle3​(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf,
                                    String className,
                                    String methodName,
                                    String... methodParams)
      • getDefaultAttribute

        public T getDefaultAttribute()
      • setDefaultAttribute

        public void setDefaultAttribute​(T defaultAttribute)
      • isMethodLevel

        public boolean isMethodLevel​(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf,
                                     Method method,
                                     org.jboss.metadata.ejb.spec.MethodInterfaceType defaultMethodIntf)
        Returns true if the given transaction specification was expliitly specified at a method level, returns false if it was inherited from the default