public class AnnotationUtils extends Object
Type Params | Return Type | Name and description |
---|---|---|
|
public static Annotation[] |
annotationsOfMethodParameter(Method method, int index) |
<A extends Annotation> |
public static A |
findAnnotation(Class<?> klass, Class<A> annotationType) |
<A extends Annotation> |
public static A |
findAnnotation(Class<?> klass, Class<A> annotationType, boolean deep) |
<A extends Annotation> |
public static A |
findAnnotation(Method method, Class<A> annotationType) |
<A extends Annotation> |
public static A |
findAnnotation(Method method, Class<A> annotationType, boolean deep) |
<A extends Annotation> |
public static A |
findAnnotation(Annotation[] annotations, Class<A> annotationType) |
<A extends Annotation> |
public static A |
findAnnotation(Annotation[] annotations, Class<A> annotationType, boolean deep) |
|
public static String[] |
getDependsOn(Object instance) |
|
public static String |
getEvicts(Object instance) |
|
public static List<Annotation> |
harvestQualifiers(Class<?> klass) |
|
public static boolean |
isAnnotatedWith(Object instance, Class<? extends Annotation> annotationType) |
|
public static boolean |
isAnnotatedWith(Method method, Class<? extends Annotation> annotationType) |
|
public static boolean |
isAnnotatedWith(Method method, Class<? extends Annotation> annotationType, boolean deep) |
|
public static boolean |
isAnnotatedWith(Annotation annotation, Class<? extends Annotation> annotationType) |
|
public static boolean |
isAnnotatedWith(Annotation annotation, Class<? extends Annotation> annotationType, boolean deep) |
|
public static boolean |
isAnnotatedWith(Class<?> clazz, Class<? extends Annotation> annotationType) |
<T> |
public static Map<String, T> |
mapInstancesByName(Collection<T> instances, String suffix) |
<T> |
public static Map<String, T> |
mapInstancesByName(String context, Collection<T> instances, String suffix, String type) |
|
public static String |
nameFor(Class<?> klass) |
|
public static String |
nameFor(Class<?> klass, boolean simple) |
|
public static String |
nameFor(Object instance) |
|
public static String |
nameFor(Object instance, boolean simple) |
|
public static String |
nameFor(Field field) |
|
public static String |
nameFor(Field field, boolean simple) |
|
public static String |
nameFor(Method setterMethod) |
|
public static Named |
named(String name) |
|
public static String[] |
namesFor(Field field) |
|
public static String[] |
namesFor(Method setterMethod) |
|
public static Class<?> |
parameterTypeAt(Method method, int index) |
<T> |
public static T |
requireAnnotation(T instance, Class<? extends Annotation> annotationType) |
<T> |
public static Class<T> |
requireAnnotation(Class<T> klass, Class<? extends Annotation> annotationType) |
<T> |
public static Map<String, T> |
sortByDependencies(String context, Collection<T> instances, String suffix, String type) |
<T> |
public static Map<String, T> |
sortByDependencies(String context, Collection<T> instances, String suffix, String type, List<String> order) |