org.springframework.yarn.config.annotation
Class ContainerActivatorAnnotationPostProcessor
java.lang.Object
org.springframework.yarn.config.annotation.ContainerActivatorAnnotationPostProcessor
- All Implemented Interfaces:
- MethodAnnotationPostProcessor<OnYarnContainerStart>
public class ContainerActivatorAnnotationPostProcessor
- extends java.lang.Object
- implements MethodAnnotationPostProcessor<OnYarnContainerStart>
Post-processor for Methods annotated with @OnYarnContainerStart
.
- Author:
- Janne Valkealahti
Field Summary |
protected org.springframework.beans.factory.BeanFactory |
beanFactory
|
Method Summary |
java.lang.Object |
postProcess(java.lang.Object bean,
java.lang.String beanName,
java.lang.reflect.Method method,
OnYarnContainerStart annotation)
Post process a bean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
beanFactory
protected final org.springframework.beans.factory.BeanFactory beanFactory
ContainerActivatorAnnotationPostProcessor
public ContainerActivatorAnnotationPostProcessor(org.springframework.beans.factory.ListableBeanFactory beanFactory)
postProcess
public java.lang.Object postProcess(java.lang.Object bean,
java.lang.String beanName,
java.lang.reflect.Method method,
OnYarnContainerStart annotation)
- Description copied from interface:
MethodAnnotationPostProcessor
- 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 or
null
. Caller of this method is then responsible to
handle newly created object.
- Specified by:
postProcess
in interface MethodAnnotationPostProcessor<OnYarnContainerStart>
- Parameters:
bean
- the beanbeanName
- the bean namemethod
- the methodannotation
- the annotation
- Returns:
- the object