Class InfinispanConfigurationBean
java.lang.Object
org.wildfly.clustering.spring.context.infinispan.embedded.config.InfinispanConfigurationBean
- All Implemented Interfaces:
Consumer<org.springframework.core.annotation.AnnotationAttributes>,org.springframework.beans.factory.Aware,org.springframework.context.EmbeddedValueResolverAware,InfinispanConfiguration,MutableInfinispanConfiguration
A Spring bean that configures and provides an Infinispan configuration.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.spring.context.infinispan.embedded.InfinispanConfiguration
DEFAULT_CONFIGURATION_RESOURCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(org.springframework.core.annotation.AnnotationAttributes attributes) Returns the path of the configuration resource.Returns the name of a cache configuration.voidsetEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) voidsetResource(String resource) Specifies the path of the configuration resource.voidsetTemplate(String templateName) Specifies the name of the target cache configuration.
-
Constructor Details
-
InfinispanConfigurationBean
public InfinispanConfigurationBean()Creates an Infinispan configuration bean.
-
-
Method Details
-
setEmbeddedValueResolver
public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) - Specified by:
setEmbeddedValueResolverin interfaceorg.springframework.context.EmbeddedValueResolverAware
-
getResource
Description copied from interface:InfinispanConfigurationReturns the path of the configuration resource.- Specified by:
getResourcein interfaceInfinispanConfiguration- Returns:
- the path of the configuration resource.
-
getTemplate
Description copied from interface:InfinispanConfigurationReturns the name of a cache configuration.- Specified by:
getTemplatein interfaceInfinispanConfiguration- Returns:
- the name of a cache configuration.
-
setResource
Description copied from interface:MutableInfinispanConfigurationSpecifies the path of the configuration resource.- Specified by:
setResourcein interfaceMutableInfinispanConfiguration- Parameters:
resource- the path of the configuration resource.
-
setTemplate
Description copied from interface:MutableInfinispanConfigurationSpecifies the name of the target cache configuration.- Specified by:
setTemplatein interfaceMutableInfinispanConfiguration- Parameters:
templateName- the name of the target cache configuration.
-
accept
public void accept(org.springframework.core.annotation.AnnotationAttributes attributes)
-