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 ofCacheMappingthat 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 aRegExCacheMappingfor caches that will use raw types by default.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisForName(String sName)Determines if theResourceMappingis 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 aRegExCacheMappingfor 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 thisRegExCacheMappingwill be associated
-
-
Method Detail
-
isForName
public boolean isForName(String sName)
Description copied from class:ResourceMappingDetermines if theResourceMappingis for (matches) the specified resource name.- Overrides:
isForNamein classResourceMapping- Parameters:
sName- the resource name to check for a match- Returns:
trueif theResourceMappingis for the specified resource name,falseotherwise
-
-