Class SpringSessionConfiguration

java.lang.Object
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.beans.factory.InitializingBean, 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

    Modifier and Type
    Method
    Description
    org.springframework.security.core.session.SessionRegistry
     
    org.springframework.session.jdbc.JdbcIndexedSessionRepository
     
    org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.session.web.http.SessionRepositoryFilter<?>>
    sessionRepositoryFilterRegistration(org.springframework.session.web.http.SessionRepositoryFilter<?> filter)
     
    void
     
    void
    setDataSource(org.springframework.beans.factory.ObjectProvider<DataSource> springSessionDataSource, org.springframework.beans.factory.ObjectProvider<DataSource> dataSource)
     
    void
    setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
     

    Methods inherited from class org.springframework.session.jdbc.config.annotation.web.http.JdbcHttpSessionConfiguration

    afterPropertiesSet, setApplicationContext, setCleanupCron, setConversionService, setEmbeddedValueResolver, setFlushMode, setImportMetadata, setIndexResolver, setLobHandler, setMaxInactiveInterval, setMaxInactiveIntervalInSeconds, setSaveMode, setSessionIdGenerator, setSessionRepositoryCustomizer, setSpringSessionConversionService, setTableName, setTransactionOperations

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • setDataSource

      @Autowired public void setDataSource(@SpringSessionDataSource org.springframework.beans.factory.ObjectProvider<DataSource> springSessionDataSource, @Qualifier("xlrRepositoryDataSourceProxy") org.springframework.beans.factory.ObjectProvider<DataSource> dataSource)
      Overrides:
      setDataSource in class org.springframework.session.jdbc.config.annotation.web.http.JdbcHttpSessionConfiguration
    • setTransactionManager

      @Autowired public void setTransactionManager(@Qualifier("xlrRepositoryTransactionManager") org.springframework.transaction.PlatformTransactionManager transactionManager)
      Overrides:
      setTransactionManager in class org.springframework.session.jdbc.config.annotation.web.http.JdbcHttpSessionConfiguration
    • setBeanClassLoader

      public void setBeanClassLoader(ClassLoader classLoader)
      Specified by:
      setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
      Overrides:
      setBeanClassLoader in class org.springframework.session.jdbc.config.annotation.web.http.JdbcHttpSessionConfiguration
    • sessionRepository

      @Bean public org.springframework.session.jdbc.JdbcIndexedSessionRepository sessionRepository()
      Overrides:
      sessionRepository in class org.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)