Spring for Apache Hadoop

org.springframework.yarn.container
Class ContainerMethodInvokerHelper<T>

java.lang.Object
  extended by org.springframework.yarn.support.AbstractExpressionEvaluator
      extended by org.springframework.yarn.container.ContainerMethodInvokerHelper<T>
Type Parameters:
T -
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean

public class ContainerMethodInvokerHelper<T>
extends AbstractExpressionEvaluator

A helper class using spel to execute target methods.

Author:
Janne Valkealahti

Nested Class Summary
 class ContainerMethodInvokerHelper.ParametersWrapper
          Wrapping everything we need to work with spel.
 
Constructor Summary
ContainerMethodInvokerHelper(java.lang.Object targetObject, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
           
ContainerMethodInvokerHelper(java.lang.Object targetObject, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, java.lang.Class<?> expectedType)
           
ContainerMethodInvokerHelper(java.lang.Object targetObject, java.lang.reflect.Method method)
           
ContainerMethodInvokerHelper(java.lang.Object targetObject, java.lang.reflect.Method method, java.lang.Class<?> expectedType)
           
ContainerMethodInvokerHelper(java.lang.Object targetObject, java.lang.String methodName)
           
ContainerMethodInvokerHelper(java.lang.Object targetObject, java.lang.String methodName, java.lang.Class<?> expectedType)
           
 
Method Summary
 T process(YarnContainerRuntime yarnContainerRuntime)
           
 java.lang.String toString()
           
 
Methods inherited from class org.springframework.yarn.support.AbstractExpressionEvaluator
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getEvaluationContext, getEvaluationContext, setBeanFactory, setConversionService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerMethodInvokerHelper

public ContainerMethodInvokerHelper(java.lang.Object targetObject,
                                    java.lang.reflect.Method method)

ContainerMethodInvokerHelper

public ContainerMethodInvokerHelper(java.lang.Object targetObject,
                                    java.lang.reflect.Method method,
                                    java.lang.Class<?> expectedType)

ContainerMethodInvokerHelper

public ContainerMethodInvokerHelper(java.lang.Object targetObject,
                                    java.lang.String methodName)

ContainerMethodInvokerHelper

public ContainerMethodInvokerHelper(java.lang.Object targetObject,
                                    java.lang.String methodName,
                                    java.lang.Class<?> expectedType)

ContainerMethodInvokerHelper

public ContainerMethodInvokerHelper(java.lang.Object targetObject,
                                    java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)

ContainerMethodInvokerHelper

public ContainerMethodInvokerHelper(java.lang.Object targetObject,
                                    java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
                                    java.lang.Class<?> expectedType)
Method Detail

process

public T process(YarnContainerRuntime yarnContainerRuntime)
          throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Spring for Apache Hadoop