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 Object
- implements MethodAnnotationPostProcessor<OnYarnContainerStart>
Post-processor for Methods annotated with @OnYarnContainerStart.
- Author:
- Janne Valkealahti
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
beanFactory
protected final BeanFactory beanFactory
ContainerActivatorAnnotationPostProcessor
public ContainerActivatorAnnotationPostProcessor(ListableBeanFactory beanFactory)
postProcess
public Object postProcess(Object bean,
String beanName,
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