com.caucho.ejb.cfg
Class MethodSignature

java.lang.Object
  extended by com.caucho.ejb.cfg.MethodSignature

@Module
public class MethodSignature
extends java.lang.Object


Nested Class Summary
 class MethodSignature.MethodParams
           
 
Constructor Summary
MethodSignature()
           
 
Method Summary
 void addParam(java.lang.String typeName)
          Adds a method parameter.
 void addText(java.lang.String text)
           
 MethodSignature.MethodParams createMethodParams()
          Adds a method parameter.
 boolean equals(java.lang.Object o)
           
 java.lang.String getEJBName()
           
 java.lang.String getName()
           
 int hashCode()
           
 boolean isMatch(AnnotatedMethod<?> annMethod, java.lang.String intf)
           
 boolean isMatch(java.lang.reflect.Method method, java.lang.String intf)
           
 boolean isMatch(java.lang.String methodName, java.lang.Class<?>[] params)
           
 boolean isMatch(java.lang.String methodName, java.lang.Class<?>[] params, java.lang.String intf)
           
 void setDescription(java.lang.String value)
           
 void setEJBName(java.lang.String ejbName)
           
 void setHasParams()
          Sets the parameters to zero to distinguish between methods with zero arguments and methods which don't specify the requirements.
 void setMethodIntf(java.lang.String intf)
          Sets the method interface.
 void setMethodName(java.lang.String name)
           
 void setName(java.lang.String methodName)
           
 java.lang.String toSignatureString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodSignature

public MethodSignature()
Method Detail

setEJBName

public void setEJBName(java.lang.String ejbName)

getEJBName

public java.lang.String getEJBName()

setMethodName

public void setMethodName(java.lang.String name)
                   throws ConfigException
Throws:
ConfigException

getName

public java.lang.String getName()

setName

public void setName(java.lang.String methodName)
             throws ConfigException
Throws:
ConfigException

setDescription

public void setDescription(java.lang.String value)

addText

public void addText(java.lang.String text)
             throws ConfigException
Throws:
ConfigException

addParam

public void addParam(java.lang.String typeName)
Adds a method parameter.


createMethodParams

public MethodSignature.MethodParams createMethodParams()
Adds a method parameter.


setHasParams

public void setHasParams()
Sets the parameters to zero to distinguish between methods with zero arguments and methods which don't specify the requirements.


setMethodIntf

public void setMethodIntf(java.lang.String intf)
Sets the method interface.


isMatch

public boolean isMatch(java.lang.reflect.Method method,
                       java.lang.String intf)

isMatch

public boolean isMatch(AnnotatedMethod<?> annMethod,
                       java.lang.String intf)

isMatch

public boolean isMatch(java.lang.String methodName,
                       java.lang.Class<?>[] params,
                       java.lang.String intf)

isMatch

public boolean isMatch(java.lang.String methodName,
                       java.lang.Class<?>[] params)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toSignatureString

public java.lang.String toSignatureString()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object