Class MongoHttpSessionConfiguration
java.lang.Object
org.springframework.session.data.mongo.config.annotation.web.http.MongoHttpSessionConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.context.annotation.ImportAware
,org.springframework.context.EmbeddedValueResolverAware
@Configuration(proxyBeanMethods=false)
@Import(SpringHttpSessionConfiguration.class)
public class MongoHttpSessionConfiguration
extends Object
implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.EmbeddedValueResolverAware, org.springframework.context.annotation.ImportAware
Configuration class registering
MongoSessionRepository
bean. To import this
configuration use EnableMongoHttpSession
annotation.- Since:
- 1.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmongoSessionRepository
(org.springframework.data.mongodb.core.MongoOperations mongoOperations) void
setBeanClassLoader
(ClassLoader classLoader) void
setCollectionName
(String collectionName) void
setEmbeddedValueResolver
(org.springframework.util.StringValueResolver resolver) void
setImportMetadata
(org.springframework.core.type.AnnotationMetadata importMetadata) void
setIndexResolver
(IndexResolver<Session> indexResolver) void
setMaxInactiveInterval
(Duration maxInactiveInterval) void
setMaxInactiveIntervalInSeconds
(Integer maxInactiveIntervalInSeconds) Deprecated.void
setMongoSessionConverter
(AbstractMongoSessionConverter mongoSessionConverter) void
setSessionIdGenerator
(SessionIdGenerator sessionIdGenerator) void
setSessionRepositoryCustomizers
(org.springframework.beans.factory.ObjectProvider<SessionRepositoryCustomizer<MongoIndexedSessionRepository>> sessionRepositoryCustomizers)
-
Constructor Details
-
MongoHttpSessionConfiguration
public MongoHttpSessionConfiguration()
-
-
Method Details
-
mongoSessionRepository
@Bean public MongoIndexedSessionRepository mongoSessionRepository(org.springframework.data.mongodb.core.MongoOperations mongoOperations) -
setCollectionName
-
setMaxInactiveInterval
-
setMaxInactiveIntervalInSeconds
Deprecated. -
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadata
in interfaceorg.springframework.context.annotation.ImportAware
-
setMongoSessionConverter
@Autowired(required=false) public void setMongoSessionConverter(AbstractMongoSessionConverter mongoSessionConverter) -
setSessionRepositoryCustomizers
@Autowired(required=false) public void setSessionRepositoryCustomizers(org.springframework.beans.factory.ObjectProvider<SessionRepositoryCustomizer<MongoIndexedSessionRepository>> 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
-
setIndexResolver
-
setSessionIdGenerator
-