org.jboss.seam.spring.utils
Class Annotations

java.lang.Object
  extended by org.jboss.seam.spring.utils.Annotations

public class Annotations
extends Object

Helper class for working with annotations


Constructor Summary
Annotations()
           
 
Method Summary
static
<T extends Annotation>
T
instanceOf(Class<T> clazz)
          Create an Annotation instance from its given class
static
<T extends Annotation>
T
instanceOf(Class<T> clazz, Map<String,Object> attributes)
          Create an Annotation instance from its given class
 
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

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 class
attributes - - 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.