com.caucho.ejb.cfg
Class EjbBean

java.lang.Object
  extended by com.caucho.config.types.DescriptionGroupConfig
      extended by com.caucho.ejb.cfg.EjbBean
All Implemented Interfaces:
DependencyBean, EnvironmentBean
Direct Known Subclasses:
EjbMessageBean, EjbSessionBean

public class EjbBean
extends DescriptionGroupConfig
implements EnvironmentBean, DependencyBean

Configuration for an ejb bean.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.config.types.DescriptionGroupConfig
DescriptionGroupConfig.Icon
 
Field Summary
protected  BeanGenerator _bean
           
protected  boolean _isContainerTransaction
           
protected  java.lang.ClassLoader _jClassLoader
           
protected  ApiClass _localHome
           
protected  java.util.ArrayList<ApiClass> _localList
           
protected  java.util.ArrayList<EjbMethodPattern> _methodList
           
protected  ApiClass _remoteHome
           
protected  java.util.ArrayList<ApiClass> _remoteList
           
 
Constructor Summary
EjbBean(EjbConfig ejbConfig, java.lang.String ejbModuleName)
          Creates a new entity bean configuration.
 
Method Summary
 void addBeanDependency(java.lang.String ejbName)
          Add a bean dependency.
 void addBuilderProgram(ConfigProgram init)
          Adds an undefined value, e.g.
 void addBusinessLocal(java.lang.Class localClass)
          Adds a local interface class
 void addBusinessRemote(java.lang.Class remoteClass)
          Adds a remote interface class
 void addDepend(Path path)
          Add a dependency.
 void addDependency(java.lang.Class cl)
          Add a dependency.
 void addDependency(PersistentDependency depend)
          Add a dependency.
 void addDependencyList(java.util.ArrayList<PersistentDependency> dependList)
          Adds a list of dependencies.
 void addInitProgram(ConfigProgram init)
          Adds an init program.
 void addInterceptor(Interceptor interceptor)
          Adds a new interceptor.
 void addMethod(EjbMethodPattern method)
          Adds a method.
 void addPostConstruct(PostConstructType postConstruct)
           
 void addRemoveMethod(RemoveMethod removeMethod)
          Adds a new remove-method
 void assembleBeanMethods()
          Introspects the bean's methods.
 GenClass assembleGenerator(java.lang.String fullClassName)
          Assembles the generator.
 boolean classHasMethod(ApiMethod method, ApiClass cl)
          Tests is a method is declared in a class.
 boolean containsInterceptor(java.lang.String interceptorClassName)
          Returns true if the interceptor is already configured.
protected  BeanGenerator createBeanGenerator()
          Creates the BeanGenerator generator instance
 MessageDestinationRef createMessageDestinationRef()
           
 EjbMethodPattern createMethod(MethodSignature sig)
          Adds a method.
protected  void createViews21()
          Creates the views.
 AbstractServer deployServer(EjbContainer ejbContainer, JavaClassGenerator javaGen)
          Deploys the bean.
 java.lang.RuntimeException error(java.lang.Exception e)
          Returns an error.
 ConfigException error(java.lang.String msg)
          Returns an error.
protected  ApiMethod findFirstCreateMethod(ApiClass cl)
           
static ApiMethod findMethod(java.util.ArrayList<ApiMethod> methods, ApiMethod method)
          Finds the method in the class.
static ApiMethod findMethod(MethodSignature sig, ApiClass cl, java.lang.String intf)
          Finds the method in the class.
 void generate(JavaClassGenerator javaGen, boolean isAutoCompile)
          Generates the class.
 java.lang.String getAroundInvokeMethodName()
           
 java.util.ArrayList<java.lang.String> getBeanDependList()
          Gets the bean depend list.
 java.lang.ClassLoader getClassLoader()
          Returns the class loader.
static java.lang.String getClassName(java.lang.Class cl)
          Returns a printable version of a class.
 EjbConfig getConfig()
           
 java.util.ArrayList<PersistentDependency> getDependList()
          Gets the depend list.
 java.lang.Class getEJBClass()
          Gets the ejb implementation class.
 java.lang.String getEJBClassName()
          Gets the ejb implementation class.
 ApiClass getEJBClassWrapper()
          Gets the ejb implementation class.
 EjbContainer getEjbContainer()
           
 java.lang.String getEJBFullClassName()
          Gets the ejb implementation class.
 java.lang.String getEJBKind()
          Returns the kind of bean.
 java.lang.String getEJBModuleName()
           
 java.lang.String getEJBName()
          Gets the ejbName
 java.lang.String getFilename()
          Gets the file name
 java.lang.String getFullImplName()
          Gets the implementation class name.
static java.lang.String getFullMethodName(ApiMethod method)
          Returns a full method name with arguments.
static java.lang.String getFullMethodName(java.lang.String methodName, java.lang.Class[] params)
          Returns a full method name with arguments.
 ContainerProgram getInitProgram()
          Gets the init program.
 Interceptor getInterceptor(java.lang.String interceptorClassName)
          Returns the interceptor for a given class name.
 java.util.ArrayList<Interceptor> getInterceptors()
          Returns the interceptors.
 java.util.ArrayList<Interceptor> getInvokeInterceptors(java.lang.String methodName)
          Returns the interceptors.
 int getLine()
          Gets the line
 ApiClass getLocalHome()
          Gets the local home interface class.
 java.util.ArrayList<ApiClass> getLocalList()
          Gets the local interface class.
 java.lang.String getLocation()
          Gets the location
 java.lang.String getMappedName()
          The mapped-name is the published name used by IIOP, Hessian, and jndi-remote-prefix, jndi-local-prefix.
static ApiMethod getMethod(ApiClass cl, ApiMethod sourceMethod)
          Finds the method in the class.
static ApiMethod getMethod(ApiClass cl, java.lang.String name, java.lang.Class[] param)
          Finds the method in the class.
static ApiMethod getMethod(java.util.ArrayList<ApiClass> apiList, java.lang.String name, java.lang.Class[] param)
          Finds the method in the class.
 ApiMethod getMethod(java.lang.String methodName, java.lang.Class[] paramTypes)
          Finds the method in the class.
 java.util.ArrayList<EjbMethodPattern> getMethodList()
          returns the method list.
 EjbMethodPattern getMethodPattern(ApiMethod method, java.lang.String intf)
          Gets the best method.
static java.util.ArrayList<ApiMethod> getMethods(java.util.ArrayList<ApiClass> apiList)
          Returns all the method in the class.
 java.lang.Class getRemoteClass()
          Gets the remote class.
 ApiClass getRemoteHome()
          Gets the ejb implementation class.
 java.lang.Class getRemoteHomeClass()
          Gets the remote home class.
 java.util.ArrayList<ApiClass> getRemoteList()
          Gets the remote interface class.
 RemoveMethod getRemoveMethod(java.lang.reflect.Method method)
          Returns the remove-method for the given method.
 java.util.ArrayList<RemoveMethod> getRemoveMethods()
          Returns the remove-method list.
 CallChain getSecurityChain(CallChain next, ApiMethod method, java.lang.String prefix)
           
 ContainerProgram getServerProgram()
          Gets the server program.
static java.lang.String getShortClassName(java.lang.Class cl)
          Returns a printable version of a class.
 java.lang.String getSkeletonName()
           
 java.lang.String getTimeoutMethodName()
          Returns the timeout method name.
 TransactionAttributeType getTransactionAttribute(ApiMethod method, java.lang.String intf)
          Returns the matching transaction attribute.
 CallChain getTransactionChain(CallChain next, ApiMethod apiMethod, ApiMethod implMethod, java.lang.String prefix)
           
 long getTransactionTimeout()
          Gets the transaction timeout.
 boolean hasException(ApiMethod method, java.lang.Class exn)
           
 void init()
          Configure initialization.
 void initIntrospect()
          Configure initialization.
protected  void introspect()
           
protected  void introspectBean(ApiClass type, java.lang.String defaultName)
           
protected  EjbBaseMethod introspectEJBMethod(ApiMethod method)
          Introspects an ejb method.
 boolean isAllowPOJO()
          Return true if POJO are allowed.
 boolean isCMP()
           
 boolean isCMP1()
           
 boolean isContainerTransaction()
          Returns true if the transaction type is container.
 boolean isEJB3()
           
static boolean isEquiv(ApiMethod oldMethod, ApiMethod method)
          True if we've already handled the method.
static boolean isMatch(ApiMethod methodA, ApiMethod methodB)
           
static boolean isMatch(ApiMethod method, java.lang.String name, java.lang.Class[] param)
           
protected  java.lang.Class loadClass(java.lang.String className)
           
 void setAllowPOJO(boolean allowPOJO)
          Sets true if POJO are allowed.
 void setAroundInvoke(AroundInvokeConfig aroundInvoke)
           
 void setAroundInvokeMethodName(java.lang.String aroundInvokeMethodName)
           
 void setConfigLocation(java.lang.String filename, int line)
          Sets the location
 void setContainerTransaction(boolean isContainerTransaction)
          Returns true if the transaction type is container.
 void setEJBClass(java.lang.Class ejbClass)
          Sets the ejb implementation class.
 void setEJBClassWrapper(ApiClass ejbClass)
          Sets the ejb implementation class.
 void setEJBName(java.lang.String ejbName)
          Sets the ejbName
 void setHome(java.lang.Class homeClass)
          Sets the remote home interface class.
 void setInit(ContainerProgram init)
           
 void setLocal(java.lang.Class local)
          Sets the ejb local interface
 void setLocalHome(java.lang.Class localHomeClass)
          Sets the ejb local home interface
 void setLocalHomeWrapper(ApiClass localHome)
          Sets the local home interface class.
 void setLocalWrapper(ApiClass local)
          Sets the local interface class.
 void setLocation(java.lang.String location)
          Sets the location
 void setMappedName(java.lang.String mappedName)
          The mapped-name is the remote published name used by IIOP, Hessian, and jndi-remote-prefix, jndi-local-prefix.
 void setRemote(java.lang.Class remote)
          Sets the ejb remote interface
 void setRemoteHomeWrapper(ApiClass remoteHome)
          Sets the remote home interface class.
 void setRemoteWrapper(ApiClass remote)
          Sets the remote interface class.
 void setSecurityIdentity(EjbSecurityIdentity securityIdentity)
          Sets the security identity
 void setTransactionTimeout(Period timeout)
          Sets the transaction timeout.
 java.lang.String toString()
           
 void validateException(ApiMethod method, java.lang.Class e)
           
 void validateExceptions(ApiMethod caller, ApiMethod callee)
           
 void validateExceptions(ApiMethod method, java.lang.Class[] exn)
          Check that the method throws the expected exceptions.
protected  void validateImplMethod(ApiMethod method)
          Validates an implementation method.
protected  ApiMethod validateMethod(java.lang.String methodName, java.lang.Class[] param)
           
protected  ApiMethod validateMethod(java.lang.String methodName, java.lang.Class[] param, ApiMethod sourceMethod, ApiClass sourceClass)
          Check that a method exists, is public and is not abstract.
protected  ApiMethod validateMethod(java.lang.String methodName, java.lang.Class[] param, ApiMethod sourceMethod, ApiClass sourceClass, boolean isOptional)
          Check that a method exists, is public and is not abstract.
protected  ApiMethod validateNonFinalMethod(java.lang.String methodName, java.lang.Class[] param)
           
protected  ApiMethod validateNonFinalMethod(java.lang.String methodName, java.lang.Class[] param, ApiMethod sourceMethod, ApiClass sourceClass)
           
protected  ApiMethod validateNonFinalMethod(java.lang.String methodName, java.lang.Class[] param, ApiMethod sourceMethod, ApiClass sourceClass, boolean isOptional)
          Check that a method exists, is public, not abstract, and not final.
protected  ApiMethod validateNonFinalMethod(java.lang.String methodName, java.lang.Class[] param, boolean isOptional)
           
protected  void validatePublicMethod(ApiMethod method)
          Check that a method is public.
protected  void validateRemote(ApiClass objectClass)
          Validates the remote interface.
 
Methods inherited from class com.caucho.config.types.DescriptionGroupConfig
createIcon, getDisplayName, setDescription, setDisplayName, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_jClassLoader

protected java.lang.ClassLoader _jClassLoader

_remoteHome

protected ApiClass _remoteHome

_remoteList

protected java.util.ArrayList<ApiClass> _remoteList

_localHome

protected ApiClass _localHome

_localList

protected java.util.ArrayList<ApiClass> _localList

_bean

protected BeanGenerator _bean

_isContainerTransaction

protected boolean _isContainerTransaction

_methodList

protected java.util.ArrayList<EjbMethodPattern> _methodList
Constructor Detail

EjbBean

public EjbBean(EjbConfig ejbConfig,
               java.lang.String ejbModuleName)
Creates a new entity bean configuration.

Method Detail

getConfig

public EjbConfig getConfig()

getEjbContainer

public EjbContainer getEjbContainer()

getAroundInvokeMethodName

public java.lang.String getAroundInvokeMethodName()

setAroundInvokeMethodName

public void setAroundInvokeMethodName(java.lang.String aroundInvokeMethodName)

setAroundInvoke

public void setAroundInvoke(AroundInvokeConfig aroundInvoke)

getRemoveMethod

public RemoveMethod getRemoveMethod(java.lang.reflect.Method method)
Returns the remove-method for the given method.


getRemoveMethods

public java.util.ArrayList<RemoveMethod> getRemoveMethods()
Returns the remove-method list.


getTimeoutMethodName

public java.lang.String getTimeoutMethodName()
Returns the timeout method name.


addRemoveMethod

public void addRemoveMethod(RemoveMethod removeMethod)
Adds a new remove-method


getInterceptors

public java.util.ArrayList<Interceptor> getInterceptors()
Returns the interceptors.


getInvokeInterceptors

public java.util.ArrayList<Interceptor> getInvokeInterceptors(java.lang.String methodName)
Returns the interceptors.


addInterceptor

public void addInterceptor(Interceptor interceptor)
Adds a new interceptor.


containsInterceptor

public boolean containsInterceptor(java.lang.String interceptorClassName)
Returns true if the interceptor is already configured.


getInterceptor

public Interceptor getInterceptor(java.lang.String interceptorClassName)
Returns the interceptor for a given class name.


getEJBModuleName

public java.lang.String getEJBModuleName()

getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns the class loader.

Specified by:
getClassLoader in interface EnvironmentBean

loadClass

protected java.lang.Class loadClass(java.lang.String className)

setConfigLocation

public void setConfigLocation(java.lang.String filename,
                              int line)
Sets the location


setLocation

public void setLocation(java.lang.String location)
Sets the location


getLocation

public java.lang.String getLocation()
Gets the location


getFilename

public java.lang.String getFilename()
Gets the file name


getLine

public int getLine()
Gets the line


setAllowPOJO

public void setAllowPOJO(boolean allowPOJO)
Sets true if POJO are allowed.


isAllowPOJO

public boolean isAllowPOJO()
Return true if POJO are allowed.


setEJBName

public void setEJBName(java.lang.String ejbName)
Sets the ejbName


getEJBName

public java.lang.String getEJBName()
Gets the ejbName


setMappedName

public void setMappedName(java.lang.String mappedName)
The mapped-name is the remote published name used by IIOP, Hessian, and jndi-remote-prefix, jndi-local-prefix. The default is the EJBName.


getMappedName

public java.lang.String getMappedName()
The mapped-name is the published name used by IIOP, Hessian, and jndi-remote-prefix, jndi-local-prefix.


getEJBKind

public java.lang.String getEJBKind()
Returns the kind of bean.


setEJBClass

public void setEJBClass(java.lang.Class ejbClass)
                 throws ConfigException
Sets the ejb implementation class.

Throws:
ConfigException

setEJBClassWrapper

public void setEJBClassWrapper(ApiClass ejbClass)
                        throws ConfigException
Sets the ejb implementation class.

Throws:
ConfigException

getEJBClass

public java.lang.Class getEJBClass()
Gets the ejb implementation class.


getEJBClassWrapper

public ApiClass getEJBClassWrapper()
Gets the ejb implementation class.


getEJBFullClassName

public java.lang.String getEJBFullClassName()
Gets the ejb implementation class.


getEJBClassName

public java.lang.String getEJBClassName()
Gets the ejb implementation class.


getFullImplName

public java.lang.String getFullImplName()
Gets the implementation class name.


setHome

public void setHome(java.lang.Class homeClass)
             throws ConfigException
Sets the remote home interface class.

Throws:
ConfigException

setRemoteHomeWrapper

public void setRemoteHomeWrapper(ApiClass remoteHome)
                          throws ConfigException
Sets the remote home interface class.

Throws:
ConfigException

getRemoteHome

public ApiClass getRemoteHome()
Gets the ejb implementation class.


getRemoteHomeClass

public java.lang.Class getRemoteHomeClass()
Gets the remote home class.


setRemote

public void setRemote(java.lang.Class remote)
               throws ConfigException
Sets the ejb remote interface

Throws:
ConfigException

setRemoteWrapper

public void setRemoteWrapper(ApiClass remote)
                      throws ConfigException
Sets the remote interface class.

Throws:
ConfigException

addBusinessRemote

public void addBusinessRemote(java.lang.Class remoteClass)
Adds a remote interface class


getRemoteList

public java.util.ArrayList<ApiClass> getRemoteList()
Gets the remote interface class.


getRemoteClass

public java.lang.Class getRemoteClass()
Gets the remote class.


setLocalHome

public void setLocalHome(java.lang.Class localHomeClass)
                  throws ConfigException
Sets the ejb local home interface

Throws:
ConfigException

setLocalHomeWrapper

public void setLocalHomeWrapper(ApiClass localHome)
                         throws ConfigException
Sets the local home interface class.

Throws:
ConfigException

getLocalHome

public ApiClass getLocalHome()
Gets the local home interface class.


setLocal

public void setLocal(java.lang.Class local)
              throws ConfigException
Sets the ejb local interface

Throws:
ConfigException

setLocalWrapper

public void setLocalWrapper(ApiClass local)
                     throws ConfigException
Sets the local interface class.

Throws:
ConfigException

addBusinessLocal

public void addBusinessLocal(java.lang.Class localClass)
Adds a local interface class


getLocalList

public java.util.ArrayList<ApiClass> getLocalList()
Gets the local interface class.


isContainerTransaction

public boolean isContainerTransaction()
Returns true if the transaction type is container.


setContainerTransaction

public void setContainerTransaction(boolean isContainerTransaction)
Returns true if the transaction type is container.


createMethod

public EjbMethodPattern createMethod(MethodSignature sig)
Adds a method.


addMethod

public void addMethod(EjbMethodPattern method)
Adds a method.


getMethodPattern

public EjbMethodPattern getMethodPattern(ApiMethod method,
                                         java.lang.String intf)
Gets the best method.


getMethodList

public java.util.ArrayList<EjbMethodPattern> getMethodList()
returns the method list.


setTransactionTimeout

public void setTransactionTimeout(Period timeout)
Sets the transaction timeout.


getTransactionTimeout

public long getTransactionTimeout()
Gets the transaction timeout.


createMessageDestinationRef

public MessageDestinationRef createMessageDestinationRef()

setSecurityIdentity

public void setSecurityIdentity(EjbSecurityIdentity securityIdentity)
Sets the security identity


addDependencyList

public void addDependencyList(java.util.ArrayList<PersistentDependency> dependList)
Adds a list of dependencies.


addDepend

public void addDepend(Path path)
Add a dependency.


addDependency

public void addDependency(PersistentDependency depend)
Add a dependency.

Specified by:
addDependency in interface DependencyBean

addDependency

public void addDependency(java.lang.Class cl)
Add a dependency.


getDependList

public java.util.ArrayList<PersistentDependency> getDependList()
Gets the depend list.


addBeanDependency

public void addBeanDependency(java.lang.String ejbName)
Add a bean dependency.


getBeanDependList

public java.util.ArrayList<java.lang.String> getBeanDependList()
Gets the bean depend list.


addInitProgram

public void addInitProgram(ConfigProgram init)
Adds an init program.


addBuilderProgram

public void addBuilderProgram(ConfigProgram init)
Adds an undefined value, e.g. env-entry


setInit

public void setInit(ContainerProgram init)

addPostConstruct

public void addPostConstruct(PostConstructType postConstruct)

getInitProgram

public ContainerProgram getInitProgram()
Gets the init program.


getServerProgram

public ContainerProgram getServerProgram()
Gets the server program.


init

public void init()
          throws ConfigException
Configure initialization.

Throws:
ConfigException

introspect

protected void introspect()

createBeanGenerator

protected BeanGenerator createBeanGenerator()
Creates the BeanGenerator generator instance


initIntrospect

public void initIntrospect()
                    throws ConfigException
Configure initialization.

Throws:
ConfigException

createViews21

protected void createViews21()
                      throws ConfigException
Creates the views.

Throws:
ConfigException

generate

public void generate(JavaClassGenerator javaGen,
                     boolean isAutoCompile)
              throws java.lang.Exception
Generates the class.

Throws:
java.lang.Exception

deployServer

public AbstractServer deployServer(EjbContainer ejbContainer,
                                   JavaClassGenerator javaGen)
                            throws java.lang.ClassNotFoundException,
                                   ConfigException
Deploys the bean.

Throws:
java.lang.ClassNotFoundException
ConfigException

validateRemote

protected void validateRemote(ApiClass objectClass)
                       throws ConfigException
Validates the remote interface.

Throws:
ConfigException

validateNonFinalMethod

protected ApiMethod validateNonFinalMethod(java.lang.String methodName,
                                           java.lang.Class[] param,
                                           boolean isOptional)
                                    throws ConfigException
Throws:
ConfigException

validateNonFinalMethod

protected ApiMethod validateNonFinalMethod(java.lang.String methodName,
                                           java.lang.Class[] param)
                                    throws ConfigException
Throws:
ConfigException

validateNonFinalMethod

protected ApiMethod validateNonFinalMethod(java.lang.String methodName,
                                           java.lang.Class[] param,
                                           ApiMethod sourceMethod,
                                           ApiClass sourceClass)
                                    throws ConfigException
Throws:
ConfigException

validateNonFinalMethod

protected ApiMethod validateNonFinalMethod(java.lang.String methodName,
                                           java.lang.Class[] param,
                                           ApiMethod sourceMethod,
                                           ApiClass sourceClass,
                                           boolean isOptional)
                                    throws ConfigException
Check that a method exists, is public, not abstract, and not final.

Parameters:
methodName - the name of the method to check for
args - the expected method parameters
Returns:
the matching method
Throws:
ConfigException

validateMethod

protected ApiMethod validateMethod(java.lang.String methodName,
                                   java.lang.Class[] param)
                            throws ConfigException
Throws:
ConfigException

validateMethod

protected ApiMethod validateMethod(java.lang.String methodName,
                                   java.lang.Class[] param,
                                   ApiMethod sourceMethod,
                                   ApiClass sourceClass)
                            throws ConfigException
Check that a method exists, is public and is not abstract.

Parameters:
methodName - the name of the method to check for
args - the expected method parameters
Returns:
the matching method
Throws:
ConfigException

validateMethod

protected ApiMethod validateMethod(java.lang.String methodName,
                                   java.lang.Class[] param,
                                   ApiMethod sourceMethod,
                                   ApiClass sourceClass,
                                   boolean isOptional)
                            throws ConfigException
Check that a method exists, is public and is not abstract.

Parameters:
methodName - the name of the method to check for
args - the expected method parameters
Returns:
the matching method
Throws:
ConfigException

getSkeletonName

public java.lang.String getSkeletonName()

assembleGenerator

public GenClass assembleGenerator(java.lang.String fullClassName)
                           throws java.lang.NoSuchMethodException,
                                  ConfigException
Assembles the generator.

Throws:
java.lang.NoSuchMethodException
ConfigException

assembleBeanMethods

public void assembleBeanMethods()
                         throws ConfigException
Introspects the bean's methods.

Throws:
ConfigException

introspectEJBMethod

protected EjbBaseMethod introspectEJBMethod(ApiMethod method)
                                     throws ConfigException
Introspects an ejb method.

Throws:
ConfigException

validateImplMethod

protected void validateImplMethod(ApiMethod method)
                           throws ConfigException
Validates an implementation method.

Throws:
ConfigException

getTransactionChain

public CallChain getTransactionChain(CallChain next,
                                     ApiMethod apiMethod,
                                     ApiMethod implMethod,
                                     java.lang.String prefix)

getSecurityChain

public CallChain getSecurityChain(CallChain next,
                                  ApiMethod method,
                                  java.lang.String prefix)

validatePublicMethod

protected void validatePublicMethod(ApiMethod method)
                             throws ConfigException
Check that a method is public.

Throws:
ConfigException

isEquiv

public static boolean isEquiv(ApiMethod oldMethod,
                              ApiMethod method)
True if we've already handled the method.


getTransactionAttribute

public TransactionAttributeType getTransactionAttribute(ApiMethod method,
                                                        java.lang.String intf)
Returns the matching transaction attribute.


getMethod

public ApiMethod getMethod(java.lang.String methodName,
                           java.lang.Class[] paramTypes)
Finds the method in the class.

Parameters:
cl - owning class
method - source method
Returns:
the matching method or null if non matches.

getMethod

public static ApiMethod getMethod(ApiClass cl,
                                  ApiMethod sourceMethod)
Finds the method in the class.

Parameters:
cl - owning class
method - source method
Returns:
the matching method or null if non matches.

getMethod

public static ApiMethod getMethod(java.util.ArrayList<ApiClass> apiList,
                                  java.lang.String name,
                                  java.lang.Class[] param)
Finds the method in the class.

Parameters:
apiList - owning class
name - method name to match
params - method parameters to match
Returns:
the matching method or null if non matches.

getMethod

public static ApiMethod getMethod(ApiClass cl,
                                  java.lang.String name,
                                  java.lang.Class[] param)
Finds the method in the class.

Parameters:
cl - owning class
name - method name to match
params - method parameters to match
Returns:
the matching method or null if non matches.

isCMP

public boolean isCMP()

isCMP1

public boolean isCMP1()

isEJB3

public boolean isEJB3()

isMatch

public static boolean isMatch(ApiMethod methodA,
                              ApiMethod methodB)

isMatch

public static boolean isMatch(ApiMethod method,
                              java.lang.String name,
                              java.lang.Class[] param)

findMethod

public static ApiMethod findMethod(MethodSignature sig,
                                   ApiClass cl,
                                   java.lang.String intf)
Finds the method in the class.

Parameters:
cl - owning class
name - method name to match
params - method parameters to match
Returns:
the matching method or null if non matches.

getMethods

public static java.util.ArrayList<ApiMethod> getMethods(java.util.ArrayList<ApiClass> apiList)
Returns all the method in the class.


findMethod

public static ApiMethod findMethod(java.util.ArrayList<ApiMethod> methods,
                                   ApiMethod method)