info.magnolia.i18nsystem.util
Class AnnotationUtils

java.lang.Object
  extended by info.magnolia.i18nsystem.util.AnnotationUtils

public class AnnotationUtils
extends Object

Utility methods to retrieve annotations. TODO : Cache ?


Constructor Summary
AnnotationUtils()
           
 
Method Summary
static
<A extends Annotation>
A
getAnnotationOn(Class annotatedElement, Class<A> annotationType)
           
static boolean hasAnnotationOn(AnnotatedElement annotatedElement, Class<? extends Annotation> annotationType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationUtils

public AnnotationUtils()
Method Detail

hasAnnotationOn

public static boolean hasAnnotationOn(AnnotatedElement annotatedElement,
                                      Class<? extends Annotation> annotationType)

getAnnotationOn

public static <A extends Annotation> A getAnnotationOn(Class annotatedElement,
                                                       Class<A> annotationType)


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.