Package org.jboss.as.ejb3.deployment
Class ApplicableMethodInformation<T>
java.lang.Object
org.jboss.as.ejb3.deployment.ApplicableMethodInformation<T>
Metadata store for method level information that can be applied to a method via various different deployment
descriptor styles
- Author:
- Stuart Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllAttributes(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, Method method) getAttribute(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, Method method) getAttribute(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, Method method, org.jboss.metadata.ejb.spec.MethodInterfaceType defaultMethodIntf) getAttributeStyle1(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, String className) getAttributeStyle2(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, String methodName) getAttributeStyle3(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, String className, String methodName, String... methodParams) getClassLevelAttribute(String className) getViewAttribute(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, Method method) booleanisMethodLevel(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 defaultvoidsetAttribute(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, String className, T attribute) Style 1 (13.3.7.2.1 @1)voidsetAttribute(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, T transactionAttribute, String methodName) Style 2 (13.3.7.2.1 @2)voidsetAttribute(org.jboss.metadata.ejb.spec.MethodInterfaceType methodIntf, T transactionAttribute, String className, String methodName, String... methodParams) Style 3 (13.3.7.2.1 @3)voidsetDefaultAttribute(T defaultAttribute)
-
Constructor Details
-
ApplicableMethodInformation
-
-
Method Details
-
getAttribute
-
getAttribute
-
getAllAttributes
-
getViewAttribute
-
getClassLevelAttribute
- 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 itselfattribute-
-
getAttributeStyle1
-
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 itselftransactionAttribute-methodName-
-
getAttributeStyle2
-
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 itselftransactionAttribute-methodName-methodParams-
-
getAttributeStyle3
-
getDefaultAttribute
-
setDefaultAttribute
-
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
-