public class ResourceInspectorUtil extends Object
Constructor and Description |
---|
ResourceInspectorUtil() |
Modifier and Type | Method and Description |
---|---|
protected static Class |
determineOperationType(Class resource,
Method method) |
protected static Class |
determineType(Class resource,
Method method)
Determine the expected type as the returned type of the method.
|
static List<Method> |
findMethodsByAnnotation(Class objClass,
Class<? extends Annotation> 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 Object |
invokeMethod(Method annotatedMethod,
Object obj)
Invokes a no arg method and returns the result
|
static Object |
invokeMethod(Method annotatedMethod,
Object obj,
Object... args)
Invokes a method and returns the result
|
protected static Class determineType(Class resource, Method method)
resource
- - resource with methodsmethod
- Methodpublic static List<Method> findMethodsByAnnotation(Class objClass, Class<? extends Annotation> annotationType)
objClass
- - the classannotationType
- - the annotation to findpublic static Object invokeMethod(Method annotatedMethod, Object obj)
annotatedMethod
- Methodobj
- ObjectCopyright © 2005–2017 Alfresco Software. All rights reserved.