jodd.madvoc.interceptor
Class AnnotatedFieldsInterceptor
java.lang.Object
jodd.madvoc.interceptor.ActionInterceptor
jodd.madvoc.interceptor.AnnotatedFieldsInterceptor
public abstract class AnnotatedFieldsInterceptor
- extends ActionInterceptor
Performs some operation on all annotated fields. Helpful with injection of
application context into action objects.
|
Field Summary |
protected java.util.Map<java.lang.Class<?>,java.lang.reflect.Field[]> |
annotatedField
|
protected static java.lang.reflect.Field[] |
EMPTY_FIELD
|
protected java.lang.Class<java.lang.annotation.Annotation> |
fieldAnnotation
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fieldAnnotation
protected final java.lang.Class<java.lang.annotation.Annotation> fieldAnnotation
annotatedField
protected java.util.Map<java.lang.Class<?>,java.lang.reflect.Field[]> annotatedField
EMPTY_FIELD
protected static final java.lang.reflect.Field[] EMPTY_FIELD
AnnotatedFieldsInterceptor
protected AnnotatedFieldsInterceptor(java.lang.Class<java.lang.annotation.Annotation> fieldAnnotation)
intercept
public java.lang.Object intercept(ActionRequest actionRequest)
throws java.lang.Exception
- Description copied from class:
ActionInterceptor
- Intercepts action requests.
- Specified by:
intercept in class ActionInterceptor
- Throws:
java.lang.Exception
onAnnotatedField
protected abstract void onAnnotatedField(ActionRequest actionRequest,
java.lang.reflect.Field field)
- Invoked on all annotated fields.
lookupAnnotatedFields
protected java.lang.reflect.Field[] lookupAnnotatedFields(java.lang.Class type)
- Lookups for annotated fields. Caches all annotated fields on the first
action class scan.
Copyright © 2003-2010 Jodd Team