Class Overview
Provides lifecycle services for the embedded apacheDS server defined by the supplied configuration.
Used by {code LdapServerBeanDefinitionParser}. An instance will be stored in the application context for
each embedded server instance. It will start the server when the context is initialized and shut it down when
it is closed. It is intended for temporary embedded use and will not retain changes across start/stop boundaries. The
working directory is deleted on shutdown.
If used repeatedly in a single JVM process with the same configuration (for example, when
repeatedly loading an application context during testing), it's important that the
application context is closed to allow the bean to be disposed of and the server shutdown
prior to attempting to start it again.
This class is intended for testing and internal security namespace use and is not considered part of
framework public API.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.springframework.beans.factory.DisposableBean
|
From interface
org.springframework.beans.factory.InitializingBean
abstract
void
|
afterPropertiesSet()
|
|
From interface
org.springframework.context.ApplicationContextAware
abstract
void
|
setApplicationContext(ApplicationContext arg0)
|
|
Public Constructors
Public Methods
public
void
afterPropertiesSet
()
public
DefaultDirectoryService
getService
()
public
boolean
isRunning
()
public
void
setApplicationContext
(ApplicationContext applicationContext)
public
void
setPort
(int port)
public
void
setWorkingDirectory
(File workingDir)