Spring for Apache Hadoop

org.springframework.yarn.config.annotation
Class ContainerActivatorAnnotationPostProcessor

java.lang.Object
  extended by 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
           
 
Constructor Summary
ContainerActivatorAnnotationPostProcessor(org.springframework.beans.factory.ListableBeanFactory 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
 

Field Detail

beanFactory

protected final org.springframework.beans.factory.BeanFactory beanFactory
Constructor Detail

ContainerActivatorAnnotationPostProcessor

public ContainerActivatorAnnotationPostProcessor(org.springframework.beans.factory.ListableBeanFactory beanFactory)
Method Detail

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 bean
beanName - the bean name
method - the method
annotation - the annotation
Returns:
the object

Spring for Apache Hadoop