Package org.jboss.ejb.client
Class EJBMethodLocator
- java.lang.Object
-
- org.jboss.ejb.client.EJBMethodLocator
-
- All Implemented Interfaces:
Serializable
public final class EJBMethodLocator extends Object implements Serializable
A locator for a specific EJB method.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EJBMethodLocator(String methodName, String... parameterTypeNames)Construct a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)Determine whether this object is equal to another.booleanequals(EJBMethodLocator other)Determine whether this object is equal to another.static EJBMethodLocatorforMethod(Method method)Get a method locator for the given reflection method.StringgetMethodName()Get the method name.intgetParameterCount()Get the parameter count.StringgetParameterTypeName(int index)Get the name of the parameter at the given index.inthashCode()Get the hash code.StringtoString()
-
-
-
Method Detail
-
forMethod
public static EJBMethodLocator forMethod(Method method)
Get a method locator for the given reflection method.- Parameters:
method- the reflection method (must not benull)- Returns:
- the method locator (not
null)
-
getMethodName
public String getMethodName()
Get the method name.- Returns:
- the method name (not
null)
-
getParameterCount
public int getParameterCount()
Get the parameter count.- Returns:
- the parameter count
-
getParameterTypeName
public String getParameterTypeName(int index)
Get the name of the parameter at the given index.- Returns:
- the name of the parameter at the given index
-
equals
public boolean equals(Object other)
Determine whether this object is equal to another.
-
equals
public boolean equals(EJBMethodLocator other)
Determine whether this object is equal to another.- Parameters:
other- the other object- Returns:
trueif they are equal,falseotherwise
-
hashCode
public int hashCode()
Get the hash code.
-
-