org.jboss.seam.rest.util
Class Annotations

java.lang.Object
  extended by org.jboss.seam.rest.util.Annotations

public class Annotations
extends Object


Constructor Summary
Annotations()
           
 
Method Summary
static
<T extends Annotation>
T
getAnnotation(Annotation[] annotations, Class<T> annotationClass)
          Find an instance of the annotationClass in an annotation arrays including the first level of meta-annotation.
static
<T extends Annotation>
T
getAnnotation(Collection<? extends Annotation> annotations, Class<T> annotationClass)
          Find an instance of the annotationClass in an annotation arrays including the first level of meta-annotation.
 
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

getAnnotation

public static <T extends Annotation> T getAnnotation(Collection<? extends Annotation> annotations,
                                                     Class<T> annotationClass)
Find an instance of the annotationClass in an annotation arrays including the first level of meta-annotation.

Returns:
the annotationClass instance if present, null otherwise

getAnnotation

public static <T extends Annotation> T getAnnotation(Annotation[] annotations,
                                                     Class<T> annotationClass)
Find an instance of the annotationClass in an annotation arrays including the first level of meta-annotation.

Returns:
the annotationClass instance if present, null otherwise


Copyright © 2011 Seam Framework. All Rights Reserved.