Interface MethodAnnotationPostProcessor<T extends Annotation>
- Type Parameters:
T
- the type of an annotation
- All Known Implementing Classes:
StateMachineActivatorAnnotationPostProcessor
public interface MethodAnnotationPostProcessor<T extends Annotation>
Strategy interface for post-processing annotated methods.
- Author:
- Mark Fisher, Janne Valkealahti
-
Method Summary
Modifier and TypeMethodDescriptionpostProcess
(Class<?> beanClass, Object bean, String beanName, Method method, T metaAnnotation, Annotation annotation) Post process a bean.
-
Method Details
-
postProcess
Object postProcess(Class<?> beanClass, Object bean, String beanName, Method method, T metaAnnotation, Annotation annotation) Post process a bean. As a result of a given bean, its name, method and annotation in a method, this method can return a new bean ornull
. Caller of this method is then responsible to handle newly created object.- Parameters:
beanClass
- the bean classbean
- the beanbeanName
- the bean namemethod
- the methodmetaAnnotation
- the meta annotationannotation
- the annotation- Returns:
- the post processed object
-