public class JavassistAnnotationHelper extends JavassistTypeInfoFactory implements AnnotationHelper
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.
delegate| Constructor and Description |
|---|
JavassistAnnotationHelper() |
| Modifier and Type | Method and Description |
|---|---|
AnnotationValue |
createAnnotationValue(AnnotationInfo info,
Object ann)
Create an annotation from the underlying implementation and its info type
|
AnnotationValue[] |
getAnnotations(Object object)
Get the annotations for the annotated object
|
getTypeInfo, getTypeInfo, getTypeInfopublic AnnotationValue[] getAnnotations(Object object)
AnnotationHelpergetAnnotations in interface AnnotationHelperobject - the annotated objectpublic AnnotationValue createAnnotationValue(AnnotationInfo info, Object ann)
AnnotationHelpercreateAnnotationValue in interface AnnotationHelperinfo - the annotation infoann - the underlying annotationCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.