Package org.infinispan.spring
Class AbstractEmbeddedCacheManagerFactory
- java.lang.Object
-
- org.infinispan.spring.AbstractEmbeddedCacheManagerFactory
-
- Direct Known Subclasses:
InfinispanEmbeddedCacheManagerFactoryBean
,SpringEmbeddedCacheManagerFactoryBean
public class AbstractEmbeddedCacheManagerFactory extends Object
An abstract base class for factories creating cache managers that are backed by an EmbeddedCacheManager.
- Author:
- Olaf Bergner, Marius Bogoevici
-
-
Constructor Summary
Constructors Constructor Description AbstractEmbeddedCacheManagerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCustomCacheConfiguration(ConfigurationBuilder builder)
Sets theConfigurationBuilder
to use when creating anEmbeddedCacheManager
.void
addCustomGlobalConfiguration(GlobalConfigurationBuilder gcb)
Sets theGlobalConfigurationBuilder
to use when creating anEmbeddedCacheManager
.protected EmbeddedCacheManager
createBackingEmbeddedCacheManager()
void
setConfigurationFileLocation(org.springframework.core.io.Resource configurationFileLocation)
Sets the
of the configuration file which will be used to configure thelocation
theEmbeddedCacheManager
created by thisSpringEmbeddedCacheManager
FactoryBean
delegates to.
-
-
-
Method Detail
-
createBackingEmbeddedCacheManager
protected EmbeddedCacheManager createBackingEmbeddedCacheManager() throws IOException
- Throws:
IOException
-
setConfigurationFileLocation
public void setConfigurationFileLocation(org.springframework.core.io.Resource configurationFileLocation)
Sets the
of the configuration file which will be used to configure thelocation
theEmbeddedCacheManager
created by thisSpringEmbeddedCacheManager
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 byconfigurationFileLocation
.- Parameters:
configurationFileLocation
- The
of the configuration file which will be used to configure thelocation
theEmbeddedCacheManager
created by thisSpringEmbeddedCacheManager
FactoryBean
delegates to
-
addCustomGlobalConfiguration
public void addCustomGlobalConfiguration(GlobalConfigurationBuilder gcb)
Sets theGlobalConfigurationBuilder
to use when creating anEmbeddedCacheManager
.- Parameters:
gcb
- theGlobalConfigurationBuilder
instance.
-
addCustomCacheConfiguration
public void addCustomCacheConfiguration(ConfigurationBuilder builder)
Sets theConfigurationBuilder
to use when creating anEmbeddedCacheManager
.- Parameters:
builder
- theConfigurationBuilder
instance.
-
-