Package org.glassfish.ejb.deployment
Class BeanMethodCalculatorImpl
- java.lang.Object
-
- org.glassfish.ejb.deployment.BeanMethodCalculatorImpl
-
public final class BeanMethodCalculatorImpl extends Object
Utility class to calculate the list of methods required to have transaction attributes- Author:
- Jerome Dochez
-
-
Constructor Summary
Constructors Constructor Description BeanMethodCalculatorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MapgetDisallowedMethodsNames()VectorgetMethodsFor(com.sun.enterprise.deployment.EjbDescriptor ejbDescriptor, ClassLoader classLoader)VectorgetPossibleCmpCmrFields(ClassLoader cl, String className)CollectiongetTransactionalMethodsFor(com.sun.enterprise.deployment.EjbDescriptor desc, ClassLoader loader)
-
-
-
Method Detail
-
getPossibleCmpCmrFields
public Vector getPossibleCmpCmrFields(ClassLoader cl, String className) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
getMethodsFor
public Vector getMethodsFor(com.sun.enterprise.deployment.EjbDescriptor ejbDescriptor, ClassLoader classLoader) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
getTransactionalMethodsFor
public Collection getTransactionalMethodsFor(com.sun.enterprise.deployment.EjbDescriptor desc, ClassLoader loader) throws ClassNotFoundException, NoSuchMethodException
- Returns:
- a collection of MethodDescriptor for all the methods of my ejb which are elligible to have a particular transaction setting.
- Throws:
ClassNotFoundExceptionNoSuchMethodException
-
getDisallowedMethodsNames
protected Map getDisallowedMethodsNames()
- Returns:
- a Map of disallowed methods per interface type. The key to the map is the interface type (e.g. EJBHome, EJBObject), the value is an array of methods names disallowed to have transaction attributes
-
-