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(org.springframework.session.config.annotation.web.http.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmongoSessionRepository(org.springframework.data.mongodb.core.MongoOperations mongoOperations) voidsetBeanClassLoader(ClassLoader classLoader) voidsetCollectionName(String collectionName) voidsetEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) voidsetImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) voidsetIndexResolver(org.springframework.session.IndexResolver<org.springframework.session.Session> indexResolver) voidsetMaxInactiveInterval(Duration maxInactiveInterval) voidsetMaxInactiveIntervalInSeconds(Integer maxInactiveIntervalInSeconds) Deprecated.voidsetMongoSessionConverter(AbstractMongoSessionConverter mongoSessionConverter) voidsetSessionRepositoryCustomizers(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.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:
setImportMetadatain 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<org.springframework.session.config.SessionRepositoryCustomizer<MongoIndexedSessionRepository>> sessionRepositoryCustomizers) -
setBeanClassLoader
- Specified by:
setBeanClassLoaderin interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
setEmbeddedValueResolver
public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) - Specified by:
setEmbeddedValueResolverin interfaceorg.springframework.context.EmbeddedValueResolverAware
-
setIndexResolver
@Autowired(required=false) public void setIndexResolver(org.springframework.session.IndexResolver<org.springframework.session.Session> indexResolver)
-