Class RegExCacheMapping


  • public class RegExCacheMapping
    extends CacheMapping
    An extension of CacheMapping that can use a regular expression to match with a given cache name.
    Since:
    Coherence 14.1.1
    Author:
    jk 2015.05.29
    • Constructor Detail

      • RegExCacheMapping

        public RegExCacheMapping​(String sCacheNamePattern,
                                 String sCachingSchemeName)
        Construct a RegExCacheMapping for caches that will use raw types by default.
        Parameters:
        sCacheNamePattern - the RegEx pattern that maps cache names to caching schemes
        sCachingSchemeName - the name of the caching scheme to which caches matching this RegExCacheMapping will be associated
    • Method Detail

      • isForName

        public boolean isForName​(String sName)
        Description copied from class: ResourceMapping
        Determines if the ResourceMapping is for (matches) the specified resource name.
        Overrides:
        isForName in class ResourceMapping
        Parameters:
        sName - the resource name to check for a match
        Returns:
        true if the ResourceMapping is for the specified resource name, false otherwise