org.jboss.ejb3.common.lang
Class SerializableMethod

java.lang.Object
  extended by org.jboss.ejb3.common.lang.SerializableMethod
All Implemented Interfaces:
java.io.Serializable

public class SerializableMethod
extends java.lang.Object
implements java.io.Serializable

SerializableMethod A Serializable view of an Invoked Method, providing overridden implementations of hashCode, equals, and toString JIRA: EJBTHREE-1269

See Also:
Serialized Form

Constructor Summary
SerializableMethod(java.lang.reflect.Method method)
          Constructor Creates a Serializable Method View, using the declaring class of the specified method as the actual class
SerializableMethod(java.lang.reflect.Method method, java.lang.Class<?> actualClass)
          Constructor Creates a Serializable Method View, allowing for an alternate "actual class" defining the method in addition to the declaring class
SerializableMethod(java.lang.reflect.Method method, java.lang.String actualClassName)
          Constructor Creates a Serializable Method View, allowing for an alternate "actual class" defining the method in addition to the declaring class
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getActualClassName()
           
 java.lang.String[] getArgumentTypes()
           
protected  java.lang.Class<?> getClassFromName(java.lang.String name, java.lang.ClassLoader cl)
          Returns the class associated with the given name
 java.lang.Class<?> getClassType()
          Obtains the Class described by this view, using the TCL
 java.lang.Class<?> getClassType(java.lang.ClassLoader cl)
          Obtains the Class described by this view, using the specified ClassLoader
 java.lang.String getDeclaringClassName()
           
 java.lang.String getName()
           
 java.lang.String getReturnType()
           
 int hashCode()
           
 void setActualClassName(java.lang.String actualClassName)
           
 void setArgumentTypes(java.lang.String[] argumentTypes)
           
 void setDeclaringClassName(java.lang.String className)
           
 void setName(java.lang.String name)
           
 void setReturnType(java.lang.String returnType)
           
 java.lang.reflect.Method toMethod()
          Obtains the Method described by this view, using the TCL
 java.lang.reflect.Method toMethod(java.lang.ClassLoader cl)
          Obtains the Method described by this view, using the ClassLoader specified
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerializableMethod

public SerializableMethod(java.lang.reflect.Method method)
Constructor Creates a Serializable Method View, using the declaring class of the specified method as the actual class

Parameters:
method - The method this view represents

SerializableMethod

public SerializableMethod(java.lang.reflect.Method method,
                          java.lang.Class<?> actualClass)
Constructor Creates a Serializable Method View, allowing for an alternate "actual class" defining the method in addition to the declaring class

Parameters:
method - The method this view represents
actualClass - The class to which this method is associated, may be a child of the class declaring the method

SerializableMethod

public SerializableMethod(java.lang.reflect.Method method,
                          java.lang.String actualClassName)
Constructor Creates a Serializable Method View, allowing for an alternate "actual class" defining the method in addition to the declaring class

Parameters:
method - The method this view represents
actualClass - The name of the class to which this method is associated, may be a child of the class declaring the method
Method Detail

equals

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

hashCode

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

toString

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

toMethod

public java.lang.reflect.Method toMethod()
Obtains the Method described by this view, using the TCL

Returns:

toMethod

public java.lang.reflect.Method toMethod(java.lang.ClassLoader cl)
Obtains the Method described by this view, using the ClassLoader specified

Parameters:
cl -
Returns:

getClassType

public java.lang.Class<?> getClassType()
Obtains the Class described by this view, using the TCL

Returns:

getClassType

public java.lang.Class<?> getClassType(java.lang.ClassLoader cl)
Obtains the Class described by this view, using the specified ClassLoader

Parameters:
cl -
Returns:

getClassFromName

protected java.lang.Class<?> getClassFromName(java.lang.String name,
                                              java.lang.ClassLoader cl)
Returns the class associated with the given name

Parameters:
name -
cl -
Returns:

getDeclaringClassName

public java.lang.String getDeclaringClassName()

setDeclaringClassName

public void setDeclaringClassName(java.lang.String className)

getReturnType

public java.lang.String getReturnType()

setReturnType

public void setReturnType(java.lang.String returnType)

getArgumentTypes

public java.lang.String[] getArgumentTypes()

setArgumentTypes

public void setArgumentTypes(java.lang.String[] argumentTypes)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getActualClassName

public java.lang.String getActualClassName()

setActualClassName

public void setActualClassName(java.lang.String actualClassName)