org.jboss.ejb3.common.lang
Class SerializableMethod

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

public class SerializableMethod
extends Object
implements Serializable

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

Version:
$Revision: $
Author:
ALR
See Also:
Serialized Form

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

Constructor Detail

SerializableMethod

public SerializableMethod(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(Method method,
                          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(Method method,
                          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(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

toMethod

public Method toMethod()
Obtains the Method described by this view, using the TCL

Returns:

toMethod

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

Parameters:
cl -
Returns:

getClassType

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

Returns:

getClassType

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

Parameters:
cl -
Returns:

getClassFromName

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

Parameters:
name -
cl -
Returns:

getDeclaringClassName

public String getDeclaringClassName()

setDeclaringClassName

public void setDeclaringClassName(String className)

getReturnType

public String getReturnType()

setReturnType

public void setReturnType(String returnType)

getArgumentTypes

public String[] getArgumentTypes()

setArgumentTypes

public void setArgumentTypes(String[] argumentTypes)

getName

public String getName()

setName

public void setName(String name)

getActualClassName

public String getActualClassName()

setActualClassName

public void setActualClassName(String actualClassName)


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.