Oracle® Coherence Java API Reference
v3.5

E14977-01

com.tangosol.net
Interface ConfigurableCacheFactory

All Superinterfaces:
XmlConfigurable
All Known Implementing Classes:
DefaultConfigurableCacheFactory

public interface ConfigurableCacheFactory
extends XmlConfigurable

An interface for XML driven cache factory.

Since:
Coherence 2.2
Author:
gg 2003.05.26, jh 2006.06.28
See Also:
DefaultConfigurableCacheFactory

Method Summary
 NamedCache ensureCache(java.lang.String sCacheName, java.lang.ClassLoader loader)
          Ensure a cache for the given name using the corresponding XML configuration.
 Service ensureService(java.lang.String sServiceName)
          Ensure a service for the given name using the corresponding XML configuration.
 XmlElement getConfig()
          Obtain the factory configuration XML.
 void setConfig(XmlElement xmlConfig)
          Specify the factory configuration XML.
 

Method Detail

getConfig

XmlElement getConfig()
Obtain the factory configuration XML.

Specified by:
getConfig in interface XmlConfigurable
Returns:
the configuration XML

setConfig

void setConfig(XmlElement xmlConfig)
Specify the factory configuration XML.

Specified by:
setConfig in interface XmlConfigurable
Parameters:
xmlConfig - the configuration XML

ensureCache

NamedCache ensureCache(java.lang.String sCacheName,
                       java.lang.ClassLoader loader)
Ensure a cache for the given name using the corresponding XML configuration.

Parameters:
sCacheName - the cache name
loader - ClassLoader that should be used to deserialize objects in the cache
Returns:
a NamedCache created according to the configuration XML

ensureService

Service ensureService(java.lang.String sServiceName)
Ensure a service for the given name using the corresponding XML configuration.

Parameters:
sServiceName - the service name
Returns:
a Service created according to the configuration XML

Oracle® Coherence Java API Reference
v3.5

E14977-01

Copyright © 2000, 2009, Oracle. All rights reserved.