org.jboss.reflect.plugins.javassist
Class JavassistAnnotationHelper
java.lang.Object
org.jboss.reflect.plugins.javassist.JavassistTypeInfoFactory
org.jboss.reflect.plugins.javassist.JavassistAnnotationHelper
- All Implemented Interfaces:
- AnnotationHelper, TypeInfoFactory
public class JavassistAnnotationHelper
- extends JavassistTypeInfoFactory
- implements AnnotationHelper
An javassist annotation helper that uses a static delegate.
This avoids recalculating things everytime a helper is
constructed inside the same classloader.
Extends JavassistTypeInfo to get access to delegate +
simplifies usage when TIF must also be used as AnnotationHelper.
- Author:
- Ales Justin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavassistAnnotationHelper
public JavassistAnnotationHelper()
getAnnotations
public AnnotationValue[] getAnnotations(Object object)
- Description copied from interface:
AnnotationHelper
- Get the annotations for the annotated object
- Specified by:
getAnnotations
in interface AnnotationHelper
- Parameters:
object
- the annotated object
- Returns:
- the annotations
createAnnotationValue
public AnnotationValue createAnnotationValue(AnnotationInfo info,
Object ann)
- Description copied from interface:
AnnotationHelper
- Create an annotation from the underlying implementation and its info type
- Specified by:
createAnnotationValue
in interface AnnotationHelper
- Parameters:
info
- the annotation infoann
- the underlying annotation
- Returns:
- the annotation value
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.