org.jboss.seam.spring.utils
Class Annotations
java.lang.Object
org.jboss.seam.spring.utils.Annotations
public class Annotations
- extends Object
Helper class for working with annotations
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Annotations
public Annotations()
instanceOf
public static <T extends Annotation> T instanceOf(Class<T> clazz,
Map<String,Object> attributes)
- Create an
Annotation
instance from its given class
- Type Parameters:
T
- the annotation type- Parameters:
clazz
- - the annotation classattributes
- - attribute values for the annotation (if not set, the default will be used,
must be set for attributes that do no specify a default)
- Returns:
- an annotation instance
instanceOf
public static <T extends Annotation> T instanceOf(Class<T> clazz)
- Create an
Annotation
instance from its given class
- Type Parameters:
T
- the annotation type- Parameters:
clazz
- - the annotation class
- Returns:
- an annotation instance
Copyright © 2011 Seam Framework. All Rights Reserved.