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 Enterprise Bean method.
Author:
David M. Lloyd
See Also:
  • Constructor Details

    • EJBMethodLocator

      public EJBMethodLocator(String methodName, String... parameterTypeNames)
      Construct a new instance.
      Parameters:
      methodName - the method name (must not be null)
      parameterTypeNames - the parameter type names array (may be empty, must not be null nor contain null elements)
  • Method Details

    • forMethod

      public static EJBMethodLocator forMethod(Method method)
      Get a method locator for the given reflection method.
      Parameters:
      method - the reflection method (must not be null)
      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.
      Overrides:
      equals in class Object
      Parameters:
      other - the other object
      Returns:
      true if they are equal, false otherwise
    • equals

      public boolean equals(EJBMethodLocator other)
      Determine whether this object is equal to another.
      Parameters:
      other - the other object
      Returns:
      true if they are equal, false otherwise
    • hashCode

      public int hashCode()
      Get the hash code.
      Overrides:
      hashCode in class Object
      Returns:
      the hash code
    • toString

      public String toString()
      Overrides:
      toString in class Object