Class MethodInfoHelper

java.lang.Object
org.jboss.as.ejb3.util.MethodInfoHelper

public final class MethodInfoHelper extends Object
This helper class contains helper methods that are used to resolve method-params in deployment descriptors and method level annotations in Jakarta Enterprise Beans implementation classes.
Author:
robert.panzer@me.com
  • Field Details

    • EMPTY_STRING_ARRAY

      public static final String[] EMPTY_STRING_ARRAY
  • Method Details

    • getCanonicalParameterTypes

      public static String[] getCanonicalParameterTypes(Method viewMethod)
      This method returns the class names of the parameters of the given method in canonical form. In case of a method without parameters it will return an empty array.

      The canonical form is the one that is used in deployment descriptors.

      Example: For the method f(String[] arg0, String arg1, int) this method will return {"java.lang.String[]", "java.lang.String", "int"}

      Parameters:
      viewMethod - the method to extract its parameter types
      Returns:
      string array of parameter types