Package com.oracle.coherence.spring
Class CoherenceBeanExpressionResolver
- java.lang.Object
-
- org.springframework.context.expression.StandardBeanExpressionResolver
-
- com.oracle.coherence.spring.CoherenceBeanExpressionResolver
-
- All Implemented Interfaces:
BeanExpressionResolver
public class CoherenceBeanExpressionResolver extends StandardBeanExpressionResolver
ABeanExpressionResolver
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:
SpringNamespaceHandler
-
-
Field Summary
-
Fields inherited from class org.springframework.context.expression.StandardBeanExpressionResolver
DEFAULT_EXPRESSION_PREFIX, DEFAULT_EXPRESSION_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description CoherenceBeanExpressionResolver(com.tangosol.config.expression.ExpressionParser exprParser)
Creates a CoherenceBeanExpressionResolver instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanupParameterResolver()
Cleaned upThreadLocal
ParameterResolver when no longer used.protected void
customizeEvaluationContext(StandardEvaluationContext evalContext)
com.tangosol.config.expression.ParameterResolver
getResolver()
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
-
-
-
-
Method Detail
-
customizeEvaluationContext
protected void customizeEvaluationContext(StandardEvaluationContext evalContext)
- 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.
-
-