Class SpringBootExpressionLanguageProvider
- java.lang.Object
-
- org.joinfaces.autoconfigure.rewrite.SpringBootExpressionLanguageProvider
-
- All Implemented Interfaces:
org.ocpsoft.common.pattern.Weighted,org.ocpsoft.rewrite.el.spi.ExpressionLanguageProvider
public class SpringBootExpressionLanguageProvider extends Object implements org.ocpsoft.rewrite.el.spi.ExpressionLanguageProvider
Implementation ofExpressionLanguageProviderfor the Spring Expression Language (SpEL). Inspired by https://github.com/ocpsoft/rewrite/blob/master/integration-spring/src/main/java/org/ocpsoft/rewrite/spring/SpringExpressionLanguageProvider.java- See Also:
SpringExpressionLanguageProvider
-
-
Constructor Summary
Constructors Constructor Description SpringBootExpressionLanguageProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectevaluateMethodExpression(String expression)ObjectevaluateMethodExpression(String expression, Object... values)org.springframework.expression.EvaluationContextgetEvaluationContext()Lazily creates a StandardEvaluationContext.intpriority()ObjectretrieveValue(String expression)voidsubmitValue(String expression, Object value)
-
-
-
Method Detail
-
priority
public int priority()
- Specified by:
priorityin interfaceorg.ocpsoft.common.pattern.Weighted
-
retrieveValue
public Object retrieveValue(String expression) throws UnsupportedOperationException
- Specified by:
retrieveValuein interfaceorg.ocpsoft.rewrite.el.spi.ExpressionLanguageProvider- Throws:
UnsupportedOperationException
-
submitValue
public void submitValue(String expression, Object value) throws UnsupportedOperationException
- Specified by:
submitValuein interfaceorg.ocpsoft.rewrite.el.spi.ExpressionLanguageProvider- Throws:
UnsupportedOperationException
-
evaluateMethodExpression
public Object evaluateMethodExpression(String expression) throws UnsupportedOperationException
- Specified by:
evaluateMethodExpressionin interfaceorg.ocpsoft.rewrite.el.spi.ExpressionLanguageProvider- Throws:
UnsupportedOperationException
-
evaluateMethodExpression
public Object evaluateMethodExpression(String expression, Object... values) throws UnsupportedOperationException
- Specified by:
evaluateMethodExpressionin interfaceorg.ocpsoft.rewrite.el.spi.ExpressionLanguageProvider- Throws:
UnsupportedOperationException
-
getEvaluationContext
public org.springframework.expression.EvaluationContext getEvaluationContext()
Lazily creates a StandardEvaluationContext. The code has been inspired byStandardBeanExpressionResolver.evaluate(String, BeanExpressionContext)- Returns:
- evaluation context
-
-