Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.application
Class ContainerAdapter.ApplicationScopeResolver

java.lang.Object
  extended by com.tangosol.application.ContainerAdapter.ApplicationScopeResolver

All Implemented Interfaces:
ScopeResolver
Enclosing class:
ContainerAdapter

public static class ContainerAdapter.ApplicationScopeResolver
extends java.lang.Object
implements ScopeResolver

The ContainerAdapter.ApplicationScopeResolver is a ScopeResolver typically used to make sure the Coherence Services are scoped to the name passed in the constructor. If a scope already exists, it will not be modified.

Since:
Coherence 12.1.2
Author:
cf 2011.05.26

Field Summary
protected  java.lang.String m_sAppName
          The application name to be used if the scope name is empty.

 

Constructor Summary
ContainerAdapter.ApplicationScopeResolver(java.lang.String sApplicationName)
          Constructs an ContainerAdapter.ApplicationScopeResolver with the passed in application name.

 

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

 

Field Detail

m_sAppName

protected java.lang.String m_sAppName
The application name to be used if the scope name is empty.

Constructor Detail

ContainerAdapter.ApplicationScopeResolver

public ContainerAdapter.ApplicationScopeResolver(java.lang.String sApplicationName)
Constructs an ContainerAdapter.ApplicationScopeResolver with the passed in application name.
Parameters:
sApplicationName - the application name to use if scope name is empty

Method Detail

resolveScopeName

public java.lang.String resolveScopeName(java.lang.String sConfigURI,
                                         java.lang.ClassLoader loader,
                                         java.lang.String sScopeName)
Implementations of this method must decide whether to
Specified by:
resolveScopeName in interface ScopeResolver
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

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


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