Deprecate Mongo

Fixes gh-773
This commit is contained in:
Vedran Pavic
2017-05-06 21:08:12 +02:00
parent fd55882a6e
commit 16abdc5e5c
9 changed files with 26 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2016 the original author or authors.
* Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -40,7 +40,9 @@ import org.springframework.session.Session;
*
* @author Jakub Kubrynski
* @since 1.2
* @deprecated as of 1.4, to be removed in 2.0
*/
@Deprecated
public abstract class AbstractMongoSessionConverter implements GenericConverter {
private static final Log LOG = LogFactory.getLog(AbstractMongoSessionConverter.class);

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2016 the original author or authors.
* Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,7 +22,9 @@ import org.springframework.expression.spel.standard.SpelExpressionParser;
* Utility class to extract principal name from {@code Authentication} object.
*
* @author Jakub Kubrynski
* @deprecated as of 1.4, to be removed in 2.0
*/
@Deprecated
final class AuthenticationParser {
private static final String NAME_EXPRESSION = "authentication?.name";

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2016 the original author or authors.
* Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -39,7 +39,9 @@ import org.springframework.session.FindByIndexNameSessionRepository;
*
* @author Jakub Kubrynski
* @since 1.2
* @deprecated as of 1.4, to be removed in 2.0
*/
@Deprecated
public class JacksonMongoSessionConverter extends AbstractMongoSessionConverter {
private static final Log LOG = LogFactory.getLog(JacksonMongoSessionConverter.class);

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2016 the original author or authors.
* Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -37,7 +37,9 @@ import org.springframework.util.Assert;
* @author Jakub Kubrynski
* @author Rob Winch
* @since 1.2
* @deprecated as of 1.4, to be removed in 2.0
*/
@Deprecated
public class JdkMongoSessionConverter extends AbstractMongoSessionConverter {
private static final String ID = "_id";

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2016 the original author or authors.
* Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -30,7 +30,9 @@ import org.springframework.session.ExpiringSession;
*
* @author Jakub Kubrynski
* @since 1.2
* @deprecated as of 1.4, to be removed in 2.0
*/
@Deprecated
public class MongoExpiringSession implements ExpiringSession {
/**

View File

@@ -40,7 +40,9 @@ import org.springframework.session.FindByIndexNameSessionRepository;
*
* @author Jakub Kubrynski
* @since 1.2
* @deprecated as of 1.4, to be removed in 2.0
*/
@Deprecated
public class MongoOperationsSessionRepository
implements FindByIndexNameSessionRepository<MongoExpiringSession> {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2016 the original author or authors.
* Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,7 +21,9 @@ import org.springframework.util.ClassUtils;
* Provider choosing proper AbstractMongoSessionConverter.
*
* @author Jakub Kubrynski
* @deprecated as of 1.4, to be removed in 2.0
*/
@Deprecated
final class SessionConverterProvider {
private static final String JACKSON_CLASS_NAME = "com.fasterxml.jackson.databind.ObjectMapper";

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2016 the original author or authors.
* Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -44,12 +44,14 @@ import org.springframework.session.data.mongo.MongoOperationsSessionRepository;
*
* @author Jakub Kubrynski
* @since 1.2
* @deprecated as of 1.4, to be removed in 2.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import(MongoHttpSessionConfiguration.class)
@Configuration
@Deprecated
public @interface EnableMongoHttpSession {
/**

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2016 the original author or authors.
* Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,8 +36,10 @@ import org.springframework.util.StringValueResolver;
* @author Jakub Kubrynski
* @author Eddú Meléndez
* @since 1.2
* @deprecated as of 1.4, to be removed in 2.0
*/
@Configuration
@Deprecated
public class MongoHttpSessionConfiguration extends SpringHttpSessionConfiguration
implements EmbeddedValueResolverAware, ImportAware {