org.glassfish.ejb.deployment
Class BeanMethodCalculatorImpl

java.lang.Object
  extended by org.glassfish.ejb.deployment.BeanMethodCalculatorImpl
All Implemented Interfaces:
BeanMethodCalculator

@Service
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class BeanMethodCalculatorImpl
extends java.lang.Object
implements BeanMethodCalculator

Utility class to calculate the list of methods required to have transaction attributes

Version:
Author:
Jerome Dochez

Constructor Summary
BeanMethodCalculatorImpl()
           
 
Method Summary
protected  java.util.Map getDisallowedMethodsNames()
           
 java.util.Vector getMethodsFor(EjbDescriptor ejbDescriptor, java.lang.ClassLoader classLoader)
           
 java.util.Vector getPossibleCmpCmrFields(java.lang.ClassLoader cl, java.lang.String className)
           
 java.util.Collection getTransactionalMethodsFor(EjbDescriptor ejbDescriptor, java.lang.ClassLoader loader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanMethodCalculatorImpl

public BeanMethodCalculatorImpl()
Method Detail

getPossibleCmpCmrFields

public java.util.Vector getPossibleCmpCmrFields(java.lang.ClassLoader cl,
                                                java.lang.String className)
                                         throws java.lang.ClassNotFoundException
Specified by:
getPossibleCmpCmrFields in interface BeanMethodCalculator
Throws:
java.lang.ClassNotFoundException

getMethodsFor

public java.util.Vector getMethodsFor(EjbDescriptor ejbDescriptor,
                                      java.lang.ClassLoader classLoader)
                               throws java.lang.ClassNotFoundException
Specified by:
getMethodsFor in interface BeanMethodCalculator
Throws:
java.lang.ClassNotFoundException

getTransactionalMethodsFor

public java.util.Collection getTransactionalMethodsFor(EjbDescriptor ejbDescriptor,
                                                       java.lang.ClassLoader loader)
                                                throws java.lang.ClassNotFoundException,
                                                       java.lang.NoSuchMethodException
Specified by:
getTransactionalMethodsFor in interface BeanMethodCalculator
Returns:
a collection of MethodDescriptor for all the methods of my ejb which are elligible to have a particular transaction setting.
Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException

getDisallowedMethodsNames

protected java.util.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


Copyright © 2012 GlassFish Community. All Rights Reserved.