org.apache.clerezza.triaxrs.util
Class MethodUtil
java.lang.Object
org.apache.clerezza.triaxrs.util.MethodUtil
public class MethodUtil
- extends Object
Static utility methods to detect the type of methods and to get
annotated methods of a provided class.
- Author:
- reto
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodUtil
public MethodUtil()
filterByHttpMethod
public static Set<Method> filterByHttpMethod(Set<Method> methods,
org.wymiwyg.wrhapi.Method httpMethod)
isResourceMethod
public static boolean isResourceMethod(Method method)
getAnnotatedMethods
public static Set<Method> getAnnotatedMethods(Class<?> clazz)
- Returns a Set containing Method Objects reflecting all methods of the
specified
Class, which have a jaxrs annotation. If a method
of the class has no annotations then the annotated method of the
superclass or interface is returned. Annotations on a super-class take
precedence over those on an implemented interface.
- Parameters:
clazz -
- Returns:
- Set of methods which have an jaxrs annotation
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.