|
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.net.ScopedCacheFactoryBuilder
com.tangosol.net.SingletonCacheFactoryBuilder
public class SingletonCacheFactoryBuilder
Implementation of CacheFactoryBuilder that maintains a single ConfigurableCacheFactory instance regardless of the requesting ClassLoader if a URI is not provided. This builder preserves behavior prior to Coherence 3.5.1.
As of Coherence 3.7, this implementation no longer provides various "validation strategies". The SingletonCacheFactoryBuilder is functionally equivalent to the pre 3.7 "compatibility" mode. For more advanced usage it is recommended to configure the ScopedCacheFactoryBuilder with a custom ScopeResolver or, in rare cases, configure a custom ScopedCacheFactoryBuilder extension.
| Field Summary | |
|---|---|
protected ConfigurableCacheFactory |
m_ccfSingletonSingleton ConfigurableCacheFactory instance for the default URI. |
| Fields inherited from class com.tangosol.net.ScopedCacheFactoryBuilder |
|---|
m_mapByLoader, m_mapConfigByLoader, m_scopeResolver, URI_DEFAULT |
| Constructor Summary | |
|---|---|
SingletonCacheFactoryBuilder() |
|
| Method Summary | |
|---|---|
protected ConfigurableCacheFactory |
getFactory(java.lang.String sConfigURI, java.lang.ClassLoader loader)Helper method to return a ConfigurableCacheFactory instance for the specified URI and class loader. |
protected ConfigurableCacheFactory |
getSingletonFactory()Return the singleton cache factory. |
void |
release(ConfigurableCacheFactory factory)Release the specified ConfigurableCacheFactory. |
void |
releaseAll(java.lang.ClassLoader loader)Release all ConfigurableCacheFactory objects for a given ClassLoader. |
void |
setCacheConfiguration(java.lang.String sConfigURI, java.lang.ClassLoader loader, XmlElement xmlConfig)Dynamically set the cache configuration for a given URI and class loader. |
protected void |
setSingletonFactory(ConfigurableCacheFactory ccf)Set the singleton cache factory (see getSingletonFactory()). |
| Field Detail |
|---|
protected volatile ConfigurableCacheFactory m_ccfSingleton
ConfigurableCacheFactory instance for the default URI.| Constructor Detail |
|---|
public SingletonCacheFactoryBuilder()
| Method Detail |
|---|
protected ConfigurableCacheFactory getSingletonFactory()
protected void setSingletonFactory(ConfigurableCacheFactory ccf)
getSingletonFactory()).ccf - the singleton configurable cache factory
public void setCacheConfiguration(java.lang.String sConfigURI,
java.lang.ClassLoader loader,
XmlElement xmlConfig)
setCacheConfiguration in interface CacheFactoryBuildersetCacheConfiguration in class ScopedCacheFactoryBuildersConfigURI - the configuration URI; must not be nullloader - class loader for which the configuration should be used; must not be nullxmlConfig - cache configuration in xml element formatpublic void releaseAll(java.lang.ClassLoader loader)
releaseAll in interface CacheFactoryBuilderreleaseAll in class ScopedCacheFactoryBuilderloader - the class loader for which all associated cache factories should be releasedpublic void release(ConfigurableCacheFactory factory)
release in interface CacheFactoryBuilderrelease in class ScopedCacheFactoryBuilderfactory - the ConfigurableCacheFactory to release
protected ConfigurableCacheFactory getFactory(java.lang.String sConfigURI,
java.lang.ClassLoader loader)
ConfigurableCacheFactory instance for the specified URI and class loader.getFactory in class ScopedCacheFactoryBuildersConfigURI - the configuration URI to return a ConfigurableCacheFactory forloader - the loader to return a CCF forConfigurableCacheFactory instance
|
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 | |||||||