public class AnnotationUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
clearCache()
Clears the annotation descriptors cache.
|
static AnnotationInfo |
getAnnotation(java.util.List<AnnotationInfo> annotations,
java.lang.reflect.Method javaMethod)
Returns the first annotation descriptor matching the given Java method.
|
static AnnotationInfo |
getAnnotation(java.util.List<AnnotationInfo> annotations,
Method restletMethod)
Returns the first annotation descriptor matching the given Restlet
method.
|
static AnnotationInfo |
getAnnotation(java.lang.reflect.Method javaMethod)
Returns the annotation descriptor for the given resource class.
|
static java.util.List<AnnotationInfo> |
getAnnotations(java.lang.Class<?> clazz)
Returns the annotation descriptors for the given resource class.
|
public static void clearCache()
public static AnnotationInfo getAnnotation(java.lang.reflect.Method javaMethod)
javaMethod
- The Java method.public static AnnotationInfo getAnnotation(java.util.List<AnnotationInfo> annotations, java.lang.reflect.Method javaMethod)
annotations
- The list of annotations.javaMethod
- The method to match.public static AnnotationInfo getAnnotation(java.util.List<AnnotationInfo> annotations, Method restletMethod)
annotations
- The list of annotations.restletMethod
- The method to match.public static java.util.List<AnnotationInfo> getAnnotations(java.lang.Class<?> clazz)
clazz
- The resource class to introspect.Copyright © 2005-2024 Restlet.