Package org.infinispan.spring.embedded
Class AbstractEmbeddedCacheManagerFactory
java.lang.Object
org.infinispan.spring.embedded.AbstractEmbeddedCacheManagerFactory
- Direct Known Subclasses:
InfinispanEmbeddedCacheManagerFactoryBean
,SpringEmbeddedCacheManagerFactoryBean
An abstract base class for factories creating cache managers that are backed by an EmbeddedCacheManager.
- Author:
- Olaf Bergner, Marius Bogoevici
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets theConfigurationBuilder
to use when creating anEmbeddedCacheManager
.void
Sets theGlobalConfigurationBuilder
to use when creating anEmbeddedCacheManager
.protected EmbeddedCacheManager
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.
-
Constructor Details
-
AbstractEmbeddedCacheManagerFactory
public AbstractEmbeddedCacheManagerFactory()
-
-
Method Details
-
createBackingEmbeddedCacheManager
- 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
Sets theGlobalConfigurationBuilder
to use when creating anEmbeddedCacheManager
.- Parameters:
gcb
- theGlobalConfigurationBuilder
instance.
-
addCustomCacheConfiguration
Sets theConfigurationBuilder
to use when creating anEmbeddedCacheManager
.- Parameters:
builder
- theConfigurationBuilder
instance.
-