public class AbstractEmbeddedCacheManagerFactory extends Object
An abstract base class for factories creating cache managers that are backed by an EmbeddedCacheManager.
Constructor and Description |
---|
AbstractEmbeddedCacheManagerFactory() |
Modifier and Type | Method and Description |
---|---|
void |
addCustomCacheConfiguration(ConfigurationBuilder builder)
Sets the
ConfigurationBuilder to use when creating an EmbeddedCacheManager . |
void |
addCustomGlobalConfiguration(GlobalConfigurationBuilder gcb)
Sets the
GlobalConfigurationBuilder to use when creating an EmbeddedCacheManager . |
protected EmbeddedCacheManager |
createBackingEmbeddedCacheManager() |
protected EmbeddedCacheManager |
createCacheManager(GlobalConfigurationBuilder globalBuilder,
ConfigurationBuilder builder) |
protected EmbeddedCacheManager |
createCacheManager(InputStream is) |
void |
setConfigurationFileLocation(org.springframework.core.io.Resource configurationFileLocation)
Sets the
of the
configuration file which will be used to configure the
the
created by this FactoryBean delegates
to. |
protected static final Log logger
protected EmbeddedCacheManager createBackingEmbeddedCacheManager() throws IOException
IOException
protected EmbeddedCacheManager createCacheManager(InputStream is) throws IOException
IOException
protected EmbeddedCacheManager createCacheManager(GlobalConfigurationBuilder globalBuilder, ConfigurationBuilder builder)
public void setConfigurationFileLocation(org.springframework.core.io.Resource configurationFileLocation)
Sets the
of the
configuration file which will be used to configure the
location
the
EmbeddedCacheManager
created by this SpringEmbeddedCacheManager
FactoryBean
delegates
to. If no location is supplied, Infinispan's default configuration will be used.
Note that configuration settings defined via using explicit setters exposed by this
FactoryBean
take precedence over those defined in the configuration file pointed
to by configurationFileLocation
.
configurationFileLocation
- The location
of the
configuration file which will be used to configure the
EmbeddedCacheManager
the
SpringEmbeddedCacheManager
created by this FactoryBean
delegates topublic void addCustomGlobalConfiguration(GlobalConfigurationBuilder gcb)
GlobalConfigurationBuilder
to use when creating an EmbeddedCacheManager
.gcb
- the GlobalConfigurationBuilder
instance.public void addCustomCacheConfiguration(ConfigurationBuilder builder)
ConfigurationBuilder
to use when creating an EmbeddedCacheManager
.builder
- the ConfigurationBuilder
instance.Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.