|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.ScopedCacheFactoryBuilder
com.tangosol.net.DefaultCacheFactoryBuilder
public class DefaultCacheFactoryBuilder
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 DefaultCacheFactoryBuilder 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_ccfSingleton Singleton ConfigurableCacheFactory instance for the default URI. |
Fields inherited from class com.tangosol.net.ScopedCacheFactoryBuilder |
---|
m_mapByLoader, m_mapInternedConfig, m_scopeResolver, URI_DEFAULT |
Constructor Summary | |
---|---|
DefaultCacheFactoryBuilder() |
Method Summary | |
---|---|
protected ConfigurableCacheFactory |
getFactory(java.lang.String sConfigURI, java.lang.ClassLoader loader) Helper method to return a CCF 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() ). |
Methods inherited from class com.tangosol.net.ScopedCacheFactoryBuilder |
---|
buildFactory, configureScope, ensureConfigCCFMap, getConfigurableCacheFactory, getConfigurableCacheFactory, getDefaultFactory, getScopeResolver, loadConfigFromURI, setCacheConfiguration, setScopeResolver |
Field Detail |
---|
protected volatile ConfigurableCacheFactory m_ccfSingleton
ConfigurableCacheFactory
instance for the default URI.Constructor Detail |
---|
public DefaultCacheFactoryBuilder()
Method Detail |
---|
protected ConfigurableCacheFactory getSingletonFactory()
protected void setSingletonFactory(ConfigurableCacheFactory ccf)
getSingletonFactory()
).ccf
- the singleton configurable cache factorypublic void setCacheConfiguration(java.lang.String sConfigURI, java.lang.ClassLoader loader, XmlElement xmlConfig)
setCacheConfiguration
in interface CacheFactoryBuilder
setCacheConfiguration
in class ScopedCacheFactoryBuilder
sConfigURI
- 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 CacheFactoryBuilder
releaseAll
in class ScopedCacheFactoryBuilder
loader
- the class loader for which all associated cache factories should be releasedpublic void release(ConfigurableCacheFactory factory)
release
in interface CacheFactoryBuilder
release
in class ScopedCacheFactoryBuilder
factory
- the ConfigurableCacheFactory to releaseprotected ConfigurableCacheFactory getFactory(java.lang.String sConfigURI, java.lang.ClassLoader loader)
getFactory
in class ScopedCacheFactoryBuilder
sConfigURI
- the configuration URI to return a CCF forloader
- the loader to return a CCF for
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |