public class AnnotationUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<java.lang.Class<?>,java.util.List<ParamField>> |
PARAM_INFO
Cache for annotations for Bean classes which have
Field |
| Constructor and Description |
|---|
AnnotationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assignFieldParams(java.lang.Object bean,
java.util.Map<java.lang.String,Param> params)
Assigns the param values to bean
|
private static java.util.List<java.lang.reflect.AccessibleObject> |
collectInfo(java.lang.Class<?> clazz,
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Collects all the fields and methods for an annotation
|
private static final java.util.Map<java.lang.Class<?>,java.util.List<ParamField>> PARAM_INFO
Fieldprivate static java.util.List<java.lang.reflect.AccessibleObject> collectInfo(java.lang.Class<?> clazz,
java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
clazz - bean class with annotationsannotation - annotation classpublic static void assignFieldParams(java.lang.Object bean,
java.util.Map<java.lang.String,Param> params)
throws TikaConfigException
TikaConfigException - when an error occurs while assigning params