Class SpringSessionConfiguration
- java.lang.Object
-
- org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
-
- org.springframework.session.jdbc.config.annotation.web.http.JdbcHttpSessionConfiguration
-
- com.xebialabs.xlrelease.spring.configuration.SpringSessionConfiguration
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.context.annotation.ImportAware,org.springframework.context.ApplicationContextAware,org.springframework.context.EmbeddedValueResolverAware
@Configuration @ConditionalOnProperty(value="xl.server.session.storage.enabled", havingValue="true") public class SpringSessionConfiguration extends org.springframework.session.jdbc.config.annotation.web.http.JdbcHttpSessionConfiguration
-
-
Constructor Summary
Constructors Constructor Description SpringSessionConfiguration(com.xebialabs.xlrelease.config.XlrConfig xlrConfig, com.xebialabs.deployit.ServerConfiguration serverConfiguration, com.xebialabs.deployit.security.SpringSessionConverterFactory converterFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.session.SessionRegistrysessionRegistry()org.springframework.session.jdbc.JdbcIndexedSessionRepositorysessionRepository()org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.session.web.http.SessionRepositoryFilter<?>>sessionRepositoryFilterRegistration(org.springframework.session.web.http.SessionRepositoryFilter<?> filter)voidsetBeanClassLoader(java.lang.ClassLoader classLoader)voidsetDataSource(org.springframework.beans.factory.ObjectProvider<javax.sql.DataSource> springSessionDataSource, org.springframework.beans.factory.ObjectProvider<javax.sql.DataSource> dataSource)voidsetTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)-
Methods inherited from class org.springframework.session.jdbc.config.annotation.web.http.JdbcHttpSessionConfiguration
setCleanupCron, setConversionService, setEmbeddedValueResolver, setFlushMode, setImportMetadata, setIndexResolver, setLobHandler, setMaxInactiveIntervalInSeconds, setSaveMode, setSessionRepositoryCustomizer, setSpringSessionConversionService, setTableName, setTransactionOperations
-
Methods inherited from class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
init, sessionEventHttpSessionListenerAdapter, setApplicationContext, setCookieSerializer, setHttpSessionIdResolver, setHttpSessionListeners, setServletContext, springSessionRepositoryFilter
-
-
-
-
Constructor Detail
-
SpringSessionConfiguration
public SpringSessionConfiguration(@Autowired com.xebialabs.xlrelease.config.XlrConfig xlrConfig, @Autowired com.xebialabs.deployit.ServerConfiguration serverConfiguration, @Autowired(required=false) com.xebialabs.deployit.security.SpringSessionConverterFactory converterFactory)
-
-
Method Detail
-
setDataSource
@Autowired public void setDataSource(@SpringSessionDataSource org.springframework.beans.factory.ObjectProvider<javax.sql.DataSource> springSessionDataSource, @Qualifier("xlrRepositoryDataSourceProxy") org.springframework.beans.factory.ObjectProvider<javax.sql.DataSource> dataSource)- Overrides:
setDataSourcein classorg.springframework.session.jdbc.config.annotation.web.http.JdbcHttpSessionConfiguration
-
setTransactionManager
@Autowired public void setTransactionManager(@Qualifier("xlrRepositoryTransactionManager") org.springframework.transaction.PlatformTransactionManager transactionManager)- Overrides:
setTransactionManagerin classorg.springframework.session.jdbc.config.annotation.web.http.JdbcHttpSessionConfiguration
-
setBeanClassLoader
public void setBeanClassLoader(java.lang.ClassLoader classLoader)
- Specified by:
setBeanClassLoaderin interfaceorg.springframework.beans.factory.BeanClassLoaderAware- Overrides:
setBeanClassLoaderin classorg.springframework.session.jdbc.config.annotation.web.http.JdbcHttpSessionConfiguration
-
sessionRepository
@Bean public org.springframework.session.jdbc.JdbcIndexedSessionRepository sessionRepository()
- Overrides:
sessionRepositoryin classorg.springframework.session.jdbc.config.annotation.web.http.JdbcHttpSessionConfiguration
-
sessionRegistry
@Bean public org.springframework.security.core.session.SessionRegistry sessionRegistry()
-
sessionRepositoryFilterRegistration
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.session.web.http.SessionRepositoryFilter<?>> sessionRepositoryFilterRegistration(org.springframework.session.web.http.SessionRepositoryFilter<?> filter)
-
-