Package com.oracle.coherence.spring
Class CoherenceBeanExpressionResolver
java.lang.Object
org.springframework.context.expression.StandardBeanExpressionResolver
com.oracle.coherence.spring.CoherenceBeanExpressionResolver
- All Implemented Interfaces:
BeanExpressionResolver
A
BeanExpressionResolver
implementation that bridges Coherence configuration concepts with Spring
configuration concepts. Ultimately this class and it's children support
the ability to reference Coherence parameter macros within a spring
application context file.- Author:
- Harvey Raja, Gunnar Hillert
- See Also:
-
Field Summary
Fields inherited from class org.springframework.context.expression.StandardBeanExpressionResolver
DEFAULT_EXPRESSION_PREFIX, DEFAULT_EXPRESSION_SUFFIX
-
Constructor Summary
ConstructorDescriptionCoherenceBeanExpressionResolver
(com.tangosol.config.expression.ExpressionParser exprParser) Creates a CoherenceBeanExpressionResolver instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Cleaned upThreadLocal
ParameterResolver when no longer used.protected void
customizeEvaluationContext
(StandardEvaluationContext evalContext) com.tangosol.config.expression.ParameterResolver
Returns a thread local instance of aParameterResolver
.void
setParameterResolver
(com.tangosol.config.expression.ParameterResolver resolver) Set the thread localParameterResolver
.Methods inherited from class org.springframework.context.expression.StandardBeanExpressionResolver
evaluate, setExpressionParser, setExpressionPrefix, setExpressionSuffix
-
Constructor Details
-
CoherenceBeanExpressionResolver
public CoherenceBeanExpressionResolver(com.tangosol.config.expression.ExpressionParser exprParser) Creates a CoherenceBeanExpressionResolver instance.- Parameters:
exprParser
- the ExpressionParser
-
-
Method Details
-
customizeEvaluationContext
- Overrides:
customizeEvaluationContext
in classStandardBeanExpressionResolver
-
getResolver
public com.tangosol.config.expression.ParameterResolver getResolver()Returns a thread local instance of aParameterResolver
.- Returns:
- a context sensitive
ParameterResolver
-
setParameterResolver
public void setParameterResolver(com.tangosol.config.expression.ParameterResolver resolver) Set the thread localParameterResolver
.- Parameters:
resolver
- resolver to use to determine variables
-
cleanupParameterResolver
public void cleanupParameterResolver()Cleaned upThreadLocal
ParameterResolver when no longer used.
-