JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins
Class AnnotationValueFactory

java.lang.Object
  extended by org.jboss.reflect.plugins.AnnotationValueFactory

public class AnnotationValueFactory
extends Object

The annotation value factory.

Version:
$Revision: 106445 $
Author:
Kabir Khan, Ales Justin

Constructor Summary
AnnotationValueFactory()
           
 
Method Summary
static AnnotationValue createAnnotationValue(TypeInfoFactory typeInfoFactory, AnnotationHelper annotationHelper, AnnotationInfo info, Object ann)
          Create annotation value.
static Value createValue(AnnotationHelper annotationHelper, TypeInfo type, Object value)
          Create value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationValueFactory

public AnnotationValueFactory()
Method Detail

createValue

public static Value createValue(AnnotationHelper annotationHelper,
                                TypeInfo type,
                                Object value)
Create value.

Parameters:
annotationHelper - annotation helper
type - the type
value - the raw value
Returns:
new value instance

createAnnotationValue

public static AnnotationValue createAnnotationValue(TypeInfoFactory typeInfoFactory,
                                                    AnnotationHelper annotationHelper,
                                                    AnnotationInfo info,
                                                    Object ann)
Create annotation value.

Parameters:
typeInfoFactory - the type info factory
annotationHelper - the annotation helper
info - the annotation info
ann - the actual annotation instance
Returns:
the annotation value instance

JBoss Reflection 2.2.1.SP1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.