public class AnnotationUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
clearCache()
Clears the annotation descriptors cache.
|
static AnnotationInfo |
getAnnotation(List<AnnotationInfo> annotations,
Method javaMethod)
Returns the first annotation descriptor matching the given Java method.
|
static AnnotationInfo |
getAnnotation(List<AnnotationInfo> annotations,
Method restletMethod,
Form query,
Representation entity,
MetadataService metadataService,
ConverterService converterService)
Returns the first annotation descriptor matching the given Restlet
method.
|
static List<AnnotationInfo> |
getAnnotations(Class<?> clazz)
Returns the annotation descriptors for the given resource class.
|
static List<AnnotationInfo> |
getAnnotations(Class<?> clazz,
Method javaMethod)
Returns the annotation descriptors for the given resource class.
|
public static void clearCache()
public static AnnotationInfo getAnnotation(List<AnnotationInfo> annotations, Method javaMethod)
annotations
- The list of annotations.javaMethod
- The method to match.public static AnnotationInfo getAnnotation(List<AnnotationInfo> annotations, Method restletMethod, Form query, Representation entity, MetadataService metadataService, ConverterService converterService)
annotations
- The list of annotations.restletMethod
- The method to match.query
- The query parameters.entity
- The request entity to match or null if no entity is provided.metadataService
- The metadata service to use.converterService
- The converter service to use.public static List<AnnotationInfo> getAnnotations(Class<?> clazz)
clazz
- The resource class to introspect.public static List<AnnotationInfo> getAnnotations(Class<?> clazz, Method javaMethod)
javaMethod
- The Java method.Copyright © 2005–2015. All rights reserved.