Class HotRodIndexedHttpSessionConfiguration
- java.lang.Object
-
- org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
-
- org.wildfly.clustering.web.spring.annotation.HttpSessionConfiguration
-
- org.wildfly.clustering.web.spring.annotation.IndexedHttpSessionConfiguration
-
- org.wildfly.clustering.web.spring.hotrod.annotation.HotRodIndexedHttpSessionConfiguration
-
- All Implemented Interfaces:
Consumer<org.springframework.core.annotation.AnnotationAttributes>,org.springframework.beans.factory.Aware,org.springframework.context.annotation.ImportAware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationEventPublisherAware,org.springframework.web.context.ServletContextAware,HotRodSessionRepositoryConfiguration,SessionRepositoryConfiguration
@Configuration(proxyBeanMethods=false) public class HotRodIndexedHttpSessionConfiguration extends IndexedHttpSessionConfiguration implements HotRodSessionRepositoryConfiguration
Spring configuration bean for an indexed session repository whose sessions are persisted to a remote Infinispan cluster accessed via HotRod.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description HotRodIndexedHttpSessionConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(org.springframework.core.annotation.AnnotationAttributes attributes)PropertiesgetProperties()StringgetTemplateName()URIgetUri()HotRodSessionRepositorysessionRepository()voidsetProperties(Properties properties)voidsetTemplateName(String templateName)voidsetUri(URI uri)-
Methods inherited from class org.wildfly.clustering.web.spring.annotation.IndexedHttpSessionConfiguration
getIndexes, getIndexResolver, setIndexes, setIndexResolver
-
Methods inherited from class org.wildfly.clustering.web.spring.annotation.HttpSessionConfiguration
getEventPublisher, getIdentifierFactory, getMarshallerFactory, getMaxActiveSessions, getPersistenceStrategy, getServletContext, setApplicationEventPublisher, setGranularity, setImportMetadata, setMarshallerFactory, setMaxActiveSessions, setPersistenceStrategy, setServletContext
-
Methods inherited from class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
init, sessionEventHttpSessionListenerAdapter, setApplicationContext, setCookieSerializer, setHttpSessionIdResolver, setHttpSessionListeners, springSessionRepositoryFilter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.web.spring.SessionRepositoryConfiguration
getEventPublisher, getIdentifierFactory, getIndexes, getIndexResolver, getMarshallerFactory, getMaxActiveSessions, getPersistenceStrategy, getServletContext
-
-
-
-
Method Detail
-
sessionRepository
@Bean public HotRodSessionRepository sessionRepository()
-
getUri
public URI getUri()
- Specified by:
getUriin interfaceHotRodSessionRepositoryConfiguration
-
getProperties
public Properties getProperties()
- Specified by:
getPropertiesin interfaceHotRodSessionRepositoryConfiguration
-
getTemplateName
public String getTemplateName()
- Specified by:
getTemplateNamein interfaceHotRodSessionRepositoryConfiguration
-
setUri
@Autowired(required=false) public void setUri(URI uri)
-
setProperties
@Autowired(required=false) public void setProperties(Properties properties)
-
setTemplateName
@Autowired(required=false) public void setTemplateName(String templateName)
-
accept
public void accept(org.springframework.core.annotation.AnnotationAttributes attributes)
- Specified by:
acceptin interfaceConsumer<org.springframework.core.annotation.AnnotationAttributes>- Overrides:
acceptin classIndexedHttpSessionConfiguration
-
-