Deprecate mock JNDI support in the spring-test module
Closes gh-22779
This commit is contained in:
parent
6d7bf8050f
commit
88e3b84164
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
* Copyright 2002-2019 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.
|
||||
|
@ -29,7 +29,10 @@ import org.springframework.jndi.JndiTemplate;
|
|||
*
|
||||
* @author Rod Johnson
|
||||
* @author Juergen Hoeller
|
||||
* @deprecated Deprecated as of Spring Framework 5.2 in favor of complete solutions from
|
||||
* third parties such as <a href="https://github.com/h-thurow/Simple-JNDI">Simple-JNDI</a>
|
||||
*/
|
||||
@Deprecated
|
||||
public class ExpectedLookupTemplate extends JndiTemplate {
|
||||
|
||||
private final Map<String, Object> jndiObjects = new ConcurrentHashMap<>(16);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
* Copyright 2002-2019 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.
|
||||
|
@ -50,7 +50,10 @@ import org.springframework.util.StringUtils;
|
|||
* @author Juergen Hoeller
|
||||
* @see SimpleNamingContextBuilder
|
||||
* @see org.springframework.jndi.JndiTemplate#createInitialContext
|
||||
* @deprecated Deprecated as of Spring Framework 5.2 in favor of complete solutions from
|
||||
* third parties such as <a href="https://github.com/h-thurow/Simple-JNDI">Simple-JNDI</a>
|
||||
*/
|
||||
@Deprecated
|
||||
public class SimpleNamingContext implements Context {
|
||||
|
||||
private final Log logger = LogFactory.getLog(getClass());
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
* Copyright 2002-2019 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.
|
||||
|
@ -80,7 +80,10 @@ import org.springframework.util.ReflectionUtils;
|
|||
* @see SimpleNamingContext
|
||||
* @see org.springframework.jdbc.datasource.SingleConnectionDataSource
|
||||
* @see org.springframework.jdbc.datasource.DriverManagerDataSource
|
||||
* @deprecated Deprecated as of Spring Framework 5.2 in favor of complete solutions from
|
||||
* third parties such as <a href="https://github.com/h-thurow/Simple-JNDI">Simple-JNDI</a>
|
||||
*/
|
||||
@Deprecated
|
||||
public class SimpleNamingContextBuilder implements InitialContextFactoryBuilder {
|
||||
|
||||
/** An instance of this class bound to JNDI. */
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
/**
|
||||
* The simplest implementation of the JNDI SPI that could possibly work.
|
||||
* <strong>Deprecated</strong> as of Spring Framework 5.2 in favor of complete
|
||||
* solutions from third parties such as
|
||||
* <a href="https://github.com/h-thurow/Simple-JNDI">Simple-JNDI</a>.
|
||||
*
|
||||
* <p>The simplest implementation of the JNDI SPI that could possibly work.
|
||||
*
|
||||
* <p>Useful for setting up a simple JNDI environment for test suites
|
||||
* or stand-alone applications. If, for example, JDBC DataSources get bound to the
|
||||
* same JNDI names as within a Java EE container, both application code and
|
||||
* configuration can be reused without changes.
|
||||
*/
|
||||
@Deprecated
|
||||
@NonNullApi
|
||||
@NonNullFields
|
||||
package org.springframework.mock.jndi;
|
||||
|
|
Loading…
Reference in New Issue