Spring for Apache Hadoop

org.springframework.yarn.support
Class AbstractExpressionEvaluator

java.lang.Object
  extended by org.springframework.yarn.support.AbstractExpressionEvaluator
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
ContainerMethodInvokerHelper

public abstract class AbstractExpressionEvaluator
extends java.lang.Object
implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean

Base class providing common functionality for using Spring expression language.

Author:
Mark Fisher, Dave Syer, Oleg Zhurakousky, Artem Bilan, Gary Russell, Janne Valkealahti

Constructor Summary
AbstractExpressionEvaluator()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  java.lang.Object evaluateExpression(org.springframework.expression.Expression expression)
           
protected
<T> T
evaluateExpression(org.springframework.expression.Expression expression, java.lang.Class<T> expectedType)
           
protected  java.lang.Object evaluateExpression(org.springframework.expression.Expression expression, java.lang.Object input)
           
protected
<T> T
evaluateExpression(org.springframework.expression.Expression expression, java.lang.Object input, java.lang.Class<T> expectedType)
           
protected  java.lang.Object evaluateExpression(java.lang.String expression, java.lang.Object input)
           
protected
<T> T
evaluateExpression(java.lang.String expression, java.lang.Object input, java.lang.Class<T> expectedType)
           
protected  org.springframework.expression.spel.support.StandardEvaluationContext getEvaluationContext()
          Gets the evaluation context.
protected  org.springframework.expression.spel.support.StandardEvaluationContext getEvaluationContext(boolean beanFactoryRequired)
          Emits a WARN log if the beanFactory field is null, unless the argument is false.
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 void setConversionService(org.springframework.core.convert.ConversionService conversionService)
          Sets the conversion service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractExpressionEvaluator

public AbstractExpressionEvaluator()
Method Detail

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

setConversionService

public void setConversionService(org.springframework.core.convert.ConversionService conversionService)
Sets the conversion service.

Parameters:
conversionService - the new conversion service

getEvaluationContext

protected org.springframework.expression.spel.support.StandardEvaluationContext getEvaluationContext()
Gets the evaluation context.

Returns:
the evaluation context

getEvaluationContext

protected final org.springframework.expression.spel.support.StandardEvaluationContext getEvaluationContext(boolean beanFactoryRequired)
Emits a WARN log if the beanFactory field is null, unless the argument is false.

Parameters:
beanFactoryRequired - set to false to suppress the warning.
Returns:
The evaluation context.

evaluateExpression

protected java.lang.Object evaluateExpression(java.lang.String expression,
                                              java.lang.Object input)

evaluateExpression

protected <T> T evaluateExpression(java.lang.String expression,
                                   java.lang.Object input,
                                   java.lang.Class<T> expectedType)

evaluateExpression

protected java.lang.Object evaluateExpression(org.springframework.expression.Expression expression,
                                              java.lang.Object input)

evaluateExpression

protected <T> T evaluateExpression(org.springframework.expression.Expression expression,
                                   java.lang.Class<T> expectedType)

evaluateExpression

protected java.lang.Object evaluateExpression(org.springframework.expression.Expression expression)

evaluateExpression

protected <T> T evaluateExpression(org.springframework.expression.Expression expression,
                                   java.lang.Object input,
                                   java.lang.Class<T> expectedType)

Spring for Apache Hadoop