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, getTypeInfo
public AnnotationValue[] getAnnotations(Object object)
AnnotationHelper
getAnnotations
in interface AnnotationHelper
object
- the annotated objectpublic AnnotationValue createAnnotationValue(AnnotationInfo info, Object ann)
AnnotationHelper
createAnnotationValue
in interface AnnotationHelper
info
- the annotation infoann
- the underlying annotationCopyright © 2014 JBoss by Red Hat. All rights reserved.