浏览代码

Mark as ApacheDSContainer as deprecated

Mark ApacheDSContainer as deprecated because ApacheDS have not released
a recent 'GA' version and the current 'GA' version does not work under
JDK11.

Fixes: gh-6002
Luke Butters 6 年之前
父节点
当前提交
0b40d09fe6
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      ldap/src/main/java/org/springframework/security/ldap/server/ApacheDSContainer.java

+ 6 - 2
ldap/src/main/java/org/springframework/security/ldap/server/ApacheDSContainer.java

@@ -15,12 +15,13 @@
  */
 package org.springframework.security.ldap.server;
 
-import java.io.File;
-import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
 
+import java.io.File;
+import java.io.IOException;
+
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.directory.server.core.DefaultDirectoryService;
@@ -68,7 +69,10 @@ import org.springframework.util.Assert;
  * @author Luke Taylor
  * @author Rob Winch
  * @author Gunnar Hillert
+ * @deprecated Use {@link UnboundIdContainer} instead because ApacheDS 1.x is no longer 
+ * supported with no GA version to replace it.
  */
+@Deprecated
 public class ApacheDSContainer implements InitializingBean, DisposableBean, Lifecycle,
 		ApplicationContextAware {
 	private final Log logger = LogFactory.getLog(getClass());