org.qi4j.api.util
Class Annotations
java.lang.Object
org.qi4j.api.util.Annotations
public final class Annotations
- extends Object
Useful methods for handling Annotations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Annotations
public Annotations()
hasAnnotation
public static Specification<Annotation> hasAnnotation(Class<? extends Annotation> annotationType)
isType
public static Specification<Annotation> isType(Class<? extends Annotation> annotationType)
getAnnotation
public static <T extends Annotation> T getAnnotation(Type type,
Class<T> annotationType)
getMethodAndTypeAnnotations
public static Iterable<Annotation> getMethodAndTypeAnnotations(Method method)