CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

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(String sCacheName, ClassLoader loader)
          Ensure a cache for the given name using the corresponding XML configuration.
 Service ensureService(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(String sCacheName,
                       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(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

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation