Class InitParamProcessor.CacheRefExpression
- java.lang.Object
-
- com.tangosol.coherence.config.xml.processor.InitParamProcessor.DataStructureRefExpression<NamedCache<?,?>>
-
- com.tangosol.coherence.config.xml.processor.InitParamProcessor.CacheRefExpression
-
- All Implemented Interfaces:
Expression<NamedCache<?,?>>
- Enclosing class:
- InitParamProcessor
public static class InitParamProcessor.CacheRefExpression extends InitParamProcessor.DataStructureRefExpression<NamedCache<?,?>>
AnExpression
implementation that represents the use of a {cache-ref} macro in a Configuration File.
-
-
Constructor Summary
Constructors Constructor Description CacheRefExpression(Expression<?> exprCacheName, ClassLoader classLoader, CacheMappingRegistry registry)
Deprecated.As of Coherence 14.1.1, useCacheRefExpression(Expression, ClassLoader, ResourceMappingRegistry)
.CacheRefExpression(Expression<?> exprCacheName, ClassLoader classLoader, ResourceMappingRegistry registry)
Constructs a CacheRefExpression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedCache<?,?>
evaluate(ParameterResolver resolver)
Evaluates theExpression
to produce a value of type T.-
Methods inherited from class com.tangosol.coherence.config.xml.processor.InitParamProcessor.DataStructureRefExpression
evaluateName, getClassLoader, toString
-
-
-
-
Constructor Detail
-
CacheRefExpression
public CacheRefExpression(Expression<?> exprCacheName, ClassLoader classLoader, ResourceMappingRegistry registry)
Constructs a CacheRefExpression.- Parameters:
exprCacheName
- the Expression representing the Cache NameclassLoader
- the ClassLoader to use when loading the Cacheregistry
- the ResourceMappingRegistry to locate ResourceMapping definitions
-
CacheRefExpression
public CacheRefExpression(Expression<?> exprCacheName, ClassLoader classLoader, CacheMappingRegistry registry)
Deprecated.As of Coherence 14.1.1, useCacheRefExpression(Expression, ClassLoader, ResourceMappingRegistry)
.Constructs a CacheRefExpression.- Parameters:
exprCacheName
- the Expression representing the Cache NameclassLoader
- the ClassLoader to use when loading the Cacheregistry
- the CacheMappingRegistry to locate CacheMapping definitions
-
-
Method Detail
-
evaluate
public NamedCache<?,?> evaluate(ParameterResolver resolver)
Evaluates theExpression
to produce a value of type T.- Parameters:
resolver
- theParameterResolver
for resolving any parameters used by theExpression
- Returns:
- The result of evaluating the expression
-
-