org.springframework.integration.config.annotation
Class AbstractAnnotationMethodPostProcessor<T>
java.lang.Object
org.springframework.integration.config.annotation.AbstractAnnotationMethodPostProcessor<T>
- All Implemented Interfaces:
- AnnotationMethodPostProcessor
- Direct Known Subclasses:
- HandlerAnnotationPostProcessor, SourceAnnotationPostProcessor, TargetAnnotationPostProcessor
public abstract class AbstractAnnotationMethodPostProcessor<T>
- extends java.lang.Object
- implements AnnotationMethodPostProcessor
Base class for post-processing annotated methods.
- Author:
- Mark Fisher
Method Summary |
protected Schedule |
extractSchedule(java.lang.Class<?> originalBeanClass)
|
private java.lang.annotation.Annotation |
getAnnotation(java.lang.reflect.Method method)
|
protected MessageBus |
getMessageBus()
|
java.lang.Object |
postProcess(java.lang.Object bean,
java.lang.String beanName,
java.lang.Class<?> originalBeanClass)
|
protected abstract T |
processMethod(java.lang.Object bean,
java.lang.reflect.Method method,
java.lang.annotation.Annotation annotation)
|
protected abstract T |
processResults(java.util.List<T> results)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.apache.commons.logging.Log logger
annotationType
private final java.lang.Class<? extends java.lang.annotation.Annotation> annotationType
messageBus
private final MessageBus messageBus
beanClassLoader
private final java.lang.ClassLoader beanClassLoader
AbstractAnnotationMethodPostProcessor
public AbstractAnnotationMethodPostProcessor(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
MessageBus messageBus,
java.lang.ClassLoader beanClassLoader)
getMessageBus
protected MessageBus getMessageBus()
postProcess
public java.lang.Object postProcess(java.lang.Object bean,
java.lang.String beanName,
java.lang.Class<?> originalBeanClass)
- Specified by:
postProcess
in interface AnnotationMethodPostProcessor
getAnnotation
private java.lang.annotation.Annotation getAnnotation(java.lang.reflect.Method method)
extractSchedule
protected Schedule extractSchedule(java.lang.Class<?> originalBeanClass)
processMethod
protected abstract T processMethod(java.lang.Object bean,
java.lang.reflect.Method method,
java.lang.annotation.Annotation annotation)
processResults
protected abstract T processResults(java.util.List<T> results)