Class ReactiveMongoWebSessionConfiguration
java.lang.Object
org.springframework.session.config.annotation.web.server.SpringWebSessionConfiguration
org.springframework.session.data.mongo.config.annotation.web.reactive.ReactiveMongoWebSessionConfiguration
- 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)
public class ReactiveMongoWebSessionConfiguration
extends SpringWebSessionConfiguration
implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.EmbeddedValueResolverAware, org.springframework.context.annotation.ImportAware
Configure a
ReactiveMongoSessionRepository using a provided
ReactiveMongoOperations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactiveMongoSessionRepository(org.springframework.data.mongodb.core.ReactiveMongoOperations operations) voidsetBeanClassLoader(ClassLoader classLoader) voidsetCollectionName(String collectionName) voidsetEmbeddedValueResolver(org.springframework.util.StringValueResolver embeddedValueResolver) voidsetImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) voidsetIndexResolver(IndexResolver<MongoSession> indexResolver) voidsetMaxInactiveIntervalInSeconds(Integer maxInactiveIntervalInSeconds) voidsetMongoSessionConverter(AbstractMongoSessionConverter mongoSessionConverter) voidsetSessionRepositoryCustomizers(org.springframework.beans.factory.ObjectProvider<ReactiveSessionRepositoryCustomizer<ReactiveMongoSessionRepository>> sessionRepositoryCustomizers) Methods inherited from class org.springframework.session.config.annotation.web.server.SpringWebSessionConfiguration
setWebSessionIdResolver, webSessionManager
-
Constructor Details
-
ReactiveMongoWebSessionConfiguration
public ReactiveMongoWebSessionConfiguration()
-
-
Method Details
-
reactiveMongoSessionRepository
@Bean public ReactiveMongoSessionRepository reactiveMongoSessionRepository(org.springframework.data.mongodb.core.ReactiveMongoOperations operations) -
setMongoSessionConverter
@Autowired(required=false) public void setMongoSessionConverter(AbstractMongoSessionConverter mongoSessionConverter) -
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadatain interfaceorg.springframework.context.annotation.ImportAware
-
setBeanClassLoader
- Specified by:
setBeanClassLoaderin interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
setEmbeddedValueResolver
public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver embeddedValueResolver) - Specified by:
setEmbeddedValueResolverin interfaceorg.springframework.context.EmbeddedValueResolverAware
-
getMaxInactiveIntervalInSeconds
-
setMaxInactiveIntervalInSeconds
-
getCollectionName
-
setCollectionName
-
setSessionRepositoryCustomizers
@Autowired(required=false) public void setSessionRepositoryCustomizers(org.springframework.beans.factory.ObjectProvider<ReactiveSessionRepositoryCustomizer<ReactiveMongoSessionRepository>> sessionRepositoryCustomizers) -
setIndexResolver
-