org.qi4j.api.util
Class Annotations

java.lang.Object
  extended by org.qi4j.api.util.Annotations

public final class Annotations
extends Object

Useful methods for handling Annotations.


Constructor Summary
Annotations()
           
 
Method Summary
static
<T extends Annotation>
T
getAnnotation(Type type, Class<T> annotationType)
           
static Iterable<Annotation> getMethodAndTypeAnnotations(Method method)
           
static Specification<Annotation> hasAnnotation(Class<? extends Annotation> annotationType)
           
static Specification<Annotation> isType(Class<? extends Annotation> annotationType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Annotations

public Annotations()
Method Detail

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)