Skip to content

Commit

Permalink
Deprecate mock JNDI support in the spring-test module
Browse files Browse the repository at this point in the history
Closes gh-22779
  • Loading branch information
sbrannen committed Apr 10, 2019
1 parent 6d7bf80 commit 88e3b84
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -29,7 +29,10 @@
*
* @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:/h-thurow/Simple-JNDI">Simple-JNDI</a>
*/
@Deprecated
public class ExpectedLookupTemplate extends JndiTemplate {

private final Map<String, Object> jndiObjects = new ConcurrentHashMap<>(16);
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -50,7 +50,10 @@
* @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:/h-thurow/Simple-JNDI">Simple-JNDI</a>
*/
@Deprecated
public class SimpleNamingContext implements Context {

private final Log logger = LogFactory.getLog(getClass());
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -80,7 +80,10 @@
* @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:/h-thurow/Simple-JNDI">Simple-JNDI</a>
*/
@Deprecated
public class SimpleNamingContextBuilder implements InitialContextFactoryBuilder {

/** An instance of this class bound to JNDI. */
Expand Down
Original file line number Diff line number Diff line change
@@ -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:/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;
Expand Down

0 comments on commit 88e3b84

Please sign in to comment.