Class JdbcHttpSessionConfiguration
java.lang.Object
org.springframework.session.jdbc.config.annotation.web.http.JdbcHttpSessionConfiguration
- 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(proxyBeanMethods=false)
@Import(SpringHttpSessionConfiguration.class)
public class JdbcHttpSessionConfiguration
extends Object
implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.EmbeddedValueResolverAware, org.springframework.context.annotation.ImportAware, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Spring
@Configuration
class used to configure and initialize a JDBC based
HttpSession
provider implementation in Spring Session.
Exposes the SessionRepositoryFilter
as a bean named
springSessionRepositoryFilter
. In order to use this a single DataSource
must be exposed as a Bean.
- Since:
- 1.2.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setBeanClassLoader
(ClassLoader classLoader) void
setCleanupCron
(String cleanupCron) void
setConversionService
(org.springframework.core.convert.ConversionService conversionService) void
setDataSource
(org.springframework.beans.factory.ObjectProvider<DataSource> springSessionDataSource, org.springframework.beans.factory.ObjectProvider<DataSource> dataSource) void
setEmbeddedValueResolver
(org.springframework.util.StringValueResolver resolver) void
setFlushMode
(FlushMode flushMode) void
setImportMetadata
(org.springframework.core.type.AnnotationMetadata importMetadata) void
setIndexResolver
(IndexResolver<Session> indexResolver) void
setLobHandler
(org.springframework.jdbc.support.lob.LobHandler lobHandler) void
setMaxInactiveInterval
(Duration maxInactiveInterval) void
setMaxInactiveIntervalInSeconds
(Integer maxInactiveIntervalInSeconds) Deprecated.void
setSaveMode
(SaveMode saveMode) void
setSessionRepositoryCustomizer
(org.springframework.beans.factory.ObjectProvider<SessionRepositoryCustomizer<JdbcIndexedSessionRepository>> sessionRepositoryCustomizers) void
setSpringSessionConversionService
(org.springframework.core.convert.ConversionService conversionService) void
setTableName
(String tableName) void
setTransactionManager
(org.springframework.transaction.PlatformTransactionManager transactionManager) void
setTransactionOperations
(org.springframework.transaction.support.TransactionOperations transactionOperations)
-
Constructor Details
-
JdbcHttpSessionConfiguration
public JdbcHttpSessionConfiguration()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
sessionRepository
-
setMaxInactiveInterval
-
setMaxInactiveIntervalInSeconds
Deprecated. -
setTableName
-
setCleanupCron
-
setFlushMode
-
setSaveMode
-
setDataSource
@Autowired public void setDataSource(@SpringSessionDataSource org.springframework.beans.factory.ObjectProvider<DataSource> springSessionDataSource, org.springframework.beans.factory.ObjectProvider<DataSource> dataSource) -
setTransactionManager
@Autowired(required=false) @SpringSessionTransactionManager public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) -
setTransactionOperations
@Autowired(required=false) @Qualifier("springSessionTransactionOperations") public void setTransactionOperations(org.springframework.transaction.support.TransactionOperations transactionOperations) -
setIndexResolver
-
setLobHandler
@Autowired(required=false) @Qualifier("springSessionLobHandler") public void setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler) -
setSpringSessionConversionService
@Autowired(required=false) @Qualifier("springSessionConversionService") public void setSpringSessionConversionService(org.springframework.core.convert.ConversionService conversionService) -
setConversionService
@Autowired(required=false) @Qualifier("conversionService") public void setConversionService(org.springframework.core.convert.ConversionService conversionService) -
setSessionRepositoryCustomizer
@Autowired(required=false) public void setSessionRepositoryCustomizer(org.springframework.beans.factory.ObjectProvider<SessionRepositoryCustomizer<JdbcIndexedSessionRepository>> sessionRepositoryCustomizers) -
setBeanClassLoader
- Specified by:
setBeanClassLoader
in interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
setEmbeddedValueResolver
public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) - Specified by:
setEmbeddedValueResolver
in interfaceorg.springframework.context.EmbeddedValueResolverAware
-
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadata
in interfaceorg.springframework.context.annotation.ImportAware
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-