public interface ScopeResolver
ConfigurableCacheFactory
. This scope name is used as a prefix
to service names created by the ConfigurableCacheFactory
which
enables consumers of the factory to isolate their services and caches
from other applications running in the same cluster.Modifier and Type | Method and Description |
---|---|
String |
resolveScopeName(String sConfigURI,
ClassLoader loader,
String sScopeName)
Implementations of this method must decide whether to
return the scope name provided by the cache configuration
return a modified scope name or return a different scope name based on
external configuration
throw an exception indicating rejection of the requested scope
|
String resolveScopeName(String sConfigURI, ClassLoader loader, String sScopeName)
sConfigURI
- the configuration URIloader
- class loader for which the configuration should be usedsScopeName
- the scope name provided in the cache configuration; may be nullConfigurableCacheFactory
instance
that will be created with the configuration specified by
sConfigURIIllegalArgumentException
- if the requested scope name is rejected
(for example if a duplicate scope name is detected)