Package org.jboss.ejb.client
Class EJBMethodLocator
java.lang.Object
org.jboss.ejb.client.EJBMethodLocator
- All Implemented Interfaces:
Serializable
A locator for a specific Enterprise Bean method.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEJBMethodLocator(String methodName, String... parameterTypeNames) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether this object is equal to another.booleanequals(EJBMethodLocator other) Determine whether this object is equal to another.static EJBMethodLocatorGet a method locator for the given reflection method.Get the method name.intGet the parameter count.getParameterTypeName(int index) Get the name of the parameter at the given index.inthashCode()Get the hash code.toString()
-
Constructor Details
-
EJBMethodLocator
Construct a new instance.- Parameters:
methodName- the method name (must not benull)parameterTypeNames- the parameter type names array (may be empty, must not benullnor containnullelements)
-
-
Method Details
-
forMethod
Get a method locator for the given reflection method.- Parameters:
method- the reflection method (must not benull)- Returns:
- the method locator (not
null)
-
getMethodName
Get the method name.- Returns:
- the method name (not
null)
-
getParameterCount
public int getParameterCount()Get the parameter count.- Returns:
- the parameter count
-
getParameterTypeName
Get the name of the parameter at the given index.- Returns:
- the name of the parameter at the given index
-
equals
Determine whether this object is equal to another. -
equals
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. -
toString
-