Class 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.SessionRegistry sessionRegistry()  
      org.springframework.session.jdbc.JdbcIndexedSessionRepository sessionRepository()  
      org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.session.web.http.SessionRepositoryFilter<?>> sessionRepositoryFilterRegistration​(org.springframework.session.web.http.SessionRepositoryFilter<?> filter)  
      void setBeanClassLoader​(java.lang.ClassLoader classLoader)  
      void setDataSource​(org.springframework.beans.factory.ObjectProvider<javax.sql.DataSource> springSessionDataSource, org.springframework.beans.factory.ObjectProvider<javax.sql.DataSource> dataSource)  
      void setTransactionManager​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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:
        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​(java.lang.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)