|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface CacheFactoryBuilder
CacheFactoryBuilder provides the means for building and managing configurable cache factories across class loaders in a pluggable fashion. <p/> This is an advanced facility that could be used within J2EE or OSGi containers to provide a class loader based application isolation.
| Method Summary | |
|---|---|
ConfigurableCacheFactory |
getConfigurableCacheFactory(ClassLoader loader)Return the default ConfigurableCacheFactory for a given class loader. |
ConfigurableCacheFactory |
getConfigurableCacheFactory(String sConfigURI, ClassLoader loader)Return the ConfigurableCacheFactory for a given URI and class loader. |
void |
release(ConfigurableCacheFactory factory)Release the specified ConfigurableCacheFactory. |
void |
releaseAll(ClassLoader loader)Release all ConfigurableCacheFactory objects for a given ClassLoader. |
void |
setCacheConfiguration(ClassLoader loader, XmlElement xmlConfig)Dynamically set the default cache configuration for a given class loader. |
void |
setCacheConfiguration(String sConfigURI, ClassLoader loader, XmlElement xmlConfig)Dynamically set the cache configuration for a given URI and class loader. |
| Method Detail |
|---|
ConfigurableCacheFactory getConfigurableCacheFactory(ClassLoader loader)
loader - class loader for which the configuration should be used; must not be null
ConfigurableCacheFactory getConfigurableCacheFactory(String sConfigURI,
ClassLoader loader)
sConfigURI - the configuration URI; must not be nullloader - class loader for which the configuration should be used; must not be null
void setCacheConfiguration(ClassLoader loader,
XmlElement xmlConfig)
loader - class loader for which the configuration should be used; must not be nullxmlConfig - cache configuration in xml element format
void setCacheConfiguration(String sConfigURI,
ClassLoader loader,
XmlElement xmlConfig)
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 formatvoid releaseAll(ClassLoader loader)
loader - the class loader for which all associated cache factories should be releasedvoid release(ConfigurableCacheFactory factory)
factory - the ConfigurableCacheFactory to release
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||