public class ResourceInspectorUtil
extends java.lang.Object
Constructor and Description |
---|
ResourceInspectorUtil() |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.Class |
determineType(java.lang.Class resource,
java.lang.reflect.Method method)
Determine the expected type as the returned type of the method.
|
protected static java.util.List |
findMethodsByAnnotation(java.lang.Class objClass,
java.lang.Class annotationType)
Finds methods for the given annotation
It first finds all public member methods of the class or interface represented by objClass,
including those inherited from superclasses and superinterfaces.
|
static java.lang.Object |
invokeMethod(java.lang.reflect.Method annotatedMethod,
java.lang.Object obj)
Invokes a method and returns the result
|
protected static java.lang.Class determineType(java.lang.Class resource, java.lang.reflect.Method method)
resource
- - resource with methodsmethodName
- protected static java.util.List findMethodsByAnnotation(java.lang.Class objClass, java.lang.Class annotationType)
objClass
- - the classannotationType
- - the annotation to findpublic static java.lang.Object invokeMethod(java.lang.reflect.Method annotatedMethod, java.lang.Object obj)
annotatedMethod
- obj
- Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.