Package com.tangosol.coherence.config
Class RegExCacheMapping
- java.lang.Object
-
- com.tangosol.coherence.config.ResourceMapping
-
- com.tangosol.coherence.config.CacheMapping
-
- com.tangosol.coherence.config.RegExCacheMapping
-
public class RegExCacheMapping extends CacheMapping
An extension ofCacheMapping
that can use a regular expression to match with a given cache name.- Since:
- Coherence 14.1.1
- Author:
- jk 2015.05.29
-
-
Field Summary
-
Fields inherited from class com.tangosol.coherence.config.CacheMapping
m_fFederated
-
-
Constructor Summary
Constructors Constructor Description RegExCacheMapping(String sCacheNamePattern, String sCachingSchemeName)
Construct aRegExCacheMapping
for caches that will use raw types by default.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isForName(String sName)
Determines if theResourceMapping
is for (matches) the specified resource name.-
Methods inherited from class com.tangosol.coherence.config.CacheMapping
getCacheNamePattern, getCachingSchemeName, getConfigElementName, getKeyClassName, getValueClassName, isFederated, setFederated, setInternal, setKeyClassName, setValueClassName, usesRawTypes, validateScheme
-
Methods inherited from class com.tangosol.coherence.config.ResourceMapping
getEventInterceptorBuilders, getNamePattern, getNameUsing, getParameterResolver, getResourceRegistry, getSchemeName, getSubMappings, getValue, getValue, getWildcardMatch, isInternal, setEventInterceptorBuilders, setParameterResolver, usesWildcard
-
-
-
-
Constructor Detail
-
RegExCacheMapping
public RegExCacheMapping(String sCacheNamePattern, String sCachingSchemeName)
Construct aRegExCacheMapping
for caches that will use raw types by default.- Parameters:
sCacheNamePattern
- the RegEx pattern that maps cache names to caching schemessCachingSchemeName
- the name of the caching scheme to which caches matching thisRegExCacheMapping
will be associated
-
-
Method Detail
-
isForName
public boolean isForName(String sName)
Description copied from class:ResourceMapping
Determines if theResourceMapping
is for (matches) the specified resource name.- Overrides:
isForName
in classResourceMapping
- Parameters:
sName
- the resource name to check for a match- Returns:
true
if theResourceMapping
is for the specified resource name,false
otherwise
-
-