|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.config.CacheMappingRegistry
public class CacheMappingRegistry
A CacheMappingRegistry
provides a mechanism manage a collection of CacheMapping
s, together with the ability to search the registry for said CacheMapping
s, possibly using wild-cards.
CacheMappingRegistry
s are Iterable
, the order of iteration being that in which the CacheMapping
s where added to the said CacheMappingRegistry
.
Constructor Summary | |
---|---|
CacheMappingRegistry() Construct a CacheMappingRegistry . |
Method Summary | |
---|---|
CacheMapping |
findCacheMapping(java.lang.String sCacheName) Attempts to find the CacheMapping that matches the specified cache name. |
java.util.Iterator |
iterator() |
void |
register(CacheMapping cacheMapping) Registers a CacheMapping with the CacheMappingRegistry . |
int |
size() Determines the number of CacheMapping s in the CacheMappingRegistry . |
Constructor Detail |
---|
public CacheMappingRegistry()
CacheMappingRegistry
.Method Detail |
---|
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
public void register(CacheMapping cacheMapping) throws java.lang.IllegalArgumentException
CacheMapping
with the CacheMappingRegistry
.cacheMapping
- the CacheMapping
to registerjava.lang.IllegalArgumentException
- if a CacheMapping
with the same pattern has already been registeredpublic CacheMapping findCacheMapping(java.lang.String sCacheName)
CacheMapping
that matches the specified cache name.
The matching algorithm first attempts to find an exact match of a CacheMapping
with the provided cache name. Should that fail, all of the currently registered wild-carded CacheMapping
s are searched to find a match (in the order in which they were registered), with the most specific (longest match) being returned if there are multiple matches.
sCacheName
- the cache namenull
if a CacheMapping
could not be located for the specified cache namepublic int size()
CacheMapping
s in the CacheMappingRegistry
.CacheMapping
s
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |