|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
- * Copyright 2002-2020 the original author or authors.
|
|
|
|
|
|
+ * Copyright 2002-2022 the original author or authors.
|
|
*
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* you may not use this file except in compliance with the License.
|
|
@@ -77,7 +77,8 @@ import org.springframework.util.Assert;
|
|
* supported with no GA version to replace it.
|
|
* supported with no GA version to replace it.
|
|
*/
|
|
*/
|
|
@Deprecated
|
|
@Deprecated
|
|
-public class ApacheDSContainer implements InitializingBean, DisposableBean, Lifecycle, ApplicationContextAware {
|
|
|
|
|
|
+public class ApacheDSContainer
|
|
|
|
+ implements EmbeddedLdapServerContainer, InitializingBean, DisposableBean, Lifecycle, ApplicationContextAware {
|
|
|
|
|
|
private final Log logger = LogFactory.getLog(getClass());
|
|
private final Log logger = LogFactory.getLog(getClass());
|
|
|
|
|
|
@@ -177,10 +178,12 @@ public class ApacheDSContainer implements InitializingBean, DisposableBean, Life
|
|
this.service.setWorkingDirectory(workingDir);
|
|
this.service.setWorkingDirectory(workingDir);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public void setPort(int port) {
|
|
public void setPort(int port) {
|
|
this.port = port;
|
|
this.port = port;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public int getPort() {
|
|
public int getPort() {
|
|
return this.port;
|
|
return this.port;
|
|
}
|
|
}
|