Package org.jboss.as.ejb3.util
Class MethodInfoHelper
java.lang.Object
org.jboss.as.ejb3.util.MethodInfoHelper
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]getCanonicalParameterTypes(Method viewMethod) This method returns the class names of the parameters of the given method in canonical form.
-
Field Details
-
EMPTY_STRING_ARRAY
-
-
Method Details
-
getCanonicalParameterTypes
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
-