Package com.tangosol.application
Class ContainerAdapter.ContainerCacheFactoryBuilder
java.lang.Object
com.tangosol.net.ScopedCacheFactoryBuilder
com.tangosol.application.ContainerAdapter.ContainerCacheFactoryBuilder
- All Implemented Interfaces:
- CacheFactoryBuilder,- SessionProvider,- Comparable<SessionProvider>
- Enclosing class:
- ContainerAdapter
ContainerCacheFactoryBuilder creates a 
ConfigurableCacheFactory
 instance using the knowledge from this ContainerAdapter instance.
 This builder is used exclusively by the ContainerAdapter.- 
Nested Class SummaryNested classes/interfaces inherited from interface com.tangosol.net.SessionProviderSessionProvider.Context, SessionProvider.DefaultContext, SessionProvider.Option, SessionProvider.Provider, SessionProvider.Providers
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected CacheFactoryBuilderTheCacheFactoryBuilderto be informed of anyConfigurableCacheFactoryinstances created.Fields inherited from class com.tangosol.net.ScopedCacheFactoryBuilderf_scopeResolver, m_mapByLoader, m_mapConfigByLoaderFields inherited from interface com.tangosol.net.CacheFactoryBuilderURI_DEFAULTFields inherited from interface com.tangosol.net.SessionProviderPRIORITY
- 
Constructor SummaryConstructorsConstructorDescriptionConstruct a ContainerCacheFactoryBuilder instance with the providedCacheFactoryBuilderwhich is informed of anyConfigurableCacheFactoryinstances created.
- 
Method SummaryModifier and TypeMethodDescriptionprotected ConfigurableCacheFactorybuildFactory(String sConfigURI, ClassLoader loader, ParameterResolver resolver) Construct and configure aConfigurableCacheFactoryfor the specified cache config URI andClassLoader.voidrelease(ConfigurableCacheFactory factory) Release the specified ConfigurableCacheFactory.voidrelease(ConfigurableCacheFactory factory, boolean fShutdown) Release the specified ConfigurableCacheFactory, optionally callingdisposebased onfShutdownvalue.voidreleaseAll(ClassLoader loader) Release all ConfigurableCacheFactory objects for a given ClassLoader.setConfigurableCacheFactory(ConfigurableCacheFactory ccf, String sConfigURI, ClassLoader loader, boolean fReplace) Dynamically set theConfigurableCacheFactoryfor a given URI and class loader.protected ConfigurableCacheFactoryDynamically set theConfigurableCacheFactoryfor the default URI and class loader, iff absent.Methods inherited from class com.tangosol.net.ScopedCacheFactoryBuilderbuildFactory, ensureConfigCCFMap, ensureConfigMap, getConfigurableCacheFactory, getConfigurableCacheFactory, getConfigurableCacheFactory, getConfigurableCacheFactoryConfig, getFactory, getScopeResolver, getXmlConfig, instantiateFactory, instantiateScopeResolver, loadConfigFromURI, resolveURI, resolveURL, setCacheConfiguration, setCacheConfiguration, setXmlConfigMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tangosol.net.CacheFactoryBuildercreateSession, releaseSessionMethods inherited from interface com.tangosol.net.SessionProviderclose, compareTo, createSession, createSession, createSession, createSession, getPriority
- 
Field Details- 
m_cfbDelegateTheCacheFactoryBuilderto be informed of anyConfigurableCacheFactoryinstances created.
 
- 
- 
Constructor Details- 
ContainerCacheFactoryBuilderConstruct a ContainerCacheFactoryBuilder instance with the providedCacheFactoryBuilderwhich is informed of anyConfigurableCacheFactoryinstances created.- Parameters:
- cfb- a CacheFactoryBuilder to be informed of any- ConfigurableCacheFactoryinstances created
 
 
- 
- 
Method Details- 
releaseRelease the specified ConfigurableCacheFactory.- Specified by:
- releasein interface- CacheFactoryBuilder
- Overrides:
- releasein class- ScopedCacheFactoryBuilder
- Parameters:
- factory- the ConfigurableCacheFactory to release
 
- 
releaseAllRelease all ConfigurableCacheFactory objects for a given ClassLoader.- Specified by:
- releaseAllin interface- CacheFactoryBuilder
- Overrides:
- releaseAllin class- ScopedCacheFactoryBuilder
- Parameters:
- loader- the class loader for which all associated cache factories should be released
 
- 
buildFactoryprotected ConfigurableCacheFactory buildFactory(String sConfigURI, ClassLoader loader, ParameterResolver resolver) Construct and configure aConfigurableCacheFactoryfor the specified cache config URI andClassLoader.- Overrides:
- buildFactoryin class- ScopedCacheFactoryBuilder
- Parameters:
- sConfigURI- the URI to the cache configuration
- loader- the- ClassLoaderassociated with the factory
- resolver- an optional- ParameterResolverto use to resolve configuration parameters
- Returns:
- a ConfigurableCacheFactory for the specified XML configuration
 
- 
setConfigurableCacheFactorypublic ConfigurableCacheFactory setConfigurableCacheFactory(ConfigurableCacheFactory ccf, String sConfigURI, ClassLoader loader, boolean fReplace) Dynamically set theConfigurableCacheFactoryfor a given URI and class loader. If a ConfigurableCacheFactory for the given URI and class loader already exists and the replacement is requested, the factory will be released.- Specified by:
- setConfigurableCacheFactoryin interface- CacheFactoryBuilder
- Overrides:
- setConfigurableCacheFactoryin class- ScopedCacheFactoryBuilder
- Parameters:
- ccf- the ConfigurableCacheFactory instance
- sConfigURI- the configuration URI; must not be null
- loader- class loader for which the configuration should be used; must not be null
- fReplace- specifies whether to replace a ConfigurableCacheFactory if one is already registered
- Returns:
- the previous ConfigurableCacheFactory associated with the URI and loader, if any
 
- 
releaseRelease the specified ConfigurableCacheFactory, optionally callingdisposebased onfShutdownvalue.- Parameters:
- factory- the ConfigurableCacheFactory to release
- fShutdown- whether to call dispose on the ConfigurableCacheFactory
 
- 
setDefaultConfigurableCacheFactoryprotected ConfigurableCacheFactory setDefaultConfigurableCacheFactory(ConfigurableCacheFactory ccf, ClassLoader loader) Dynamically set theConfigurableCacheFactoryfor the default URI and class loader, iff absent.- Parameters:
- ccf- the ConfigurableCacheFactory instance
- loader- the- ClassLoaderthe ConfigurableCacheFactory is linked against
- Returns:
- the current ConfigurableCacheFactory associated with the default URI and loader
- Since:
- Coherence 12.1.2
 
 
-