Class UnboundIdContainer
- java.lang.Object
-
- org.springframework.security.ldap.server.UnboundIdContainer
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
,org.springframework.context.Lifecycle
,EmbeddedLdapServerContainer
public class UnboundIdContainer extends java.lang.Object implements EmbeddedLdapServerContainer, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.Lifecycle, org.springframework.context.ApplicationContextAware
-
-
Constructor Summary
Constructors Constructor Description UnboundIdContainer(java.lang.String defaultPartitionSuffix, java.lang.String ldif)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
destroy()
int
getPort()
Returns the embedded LDAP server port.boolean
isRunning()
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setPort(int port)
The embedded LDAP server port to connect to.void
start()
void
stop()
-
-
-
Method Detail
-
getPort
public int getPort()
Description copied from interface:EmbeddedLdapServerContainer
Returns the embedded LDAP server port.- Specified by:
getPort
in interfaceEmbeddedLdapServerContainer
- Returns:
- the embedded LDAP server port
-
setPort
public void setPort(int port)
Description copied from interface:EmbeddedLdapServerContainer
The embedded LDAP server port to connect to. Supplying 0 as the port indicates that a random available port should be selected.- Specified by:
setPort
in interfaceEmbeddedLdapServerContainer
- Parameters:
port
- the port to connect to
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
start
public void start()
- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interfaceorg.springframework.context.Lifecycle
-
-