Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.net
Interface ScopeResolver


public interface ScopeResolver

This interface is used to derive a scope name used to create an instance of 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.

Since:
Coherence 3.7
Author:
pp 2010.01.20

Method Summary
 java.lang.String resolveScopeName(java.lang.String sConfigURI, java.lang.ClassLoader loader, java.lang.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

 

Method Detail

resolveScopeName

java.lang.String resolveScopeName(java.lang.String sConfigURI,
                                  java.lang.ClassLoader loader,
                                  java.lang.String sScopeName)
Implementations of this method must decide whether to
Parameters:
sConfigURI - the configuration URI
loader - class loader for which the configuration should be used
sScopeName - the scope name provided in the cache configuration; may be null
Returns:
scope name for the ConfigurableCacheFactory instance that will be created with the configuration specified by sConfigURI
Throws:
java.lang.IllegalArgumentException - if the requested scope name is rejected (for example if a duplicate scope name is detected)

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.