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 Object
implements EmbeddedLdapServerContainer, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.Lifecycle, org.springframework.context.ApplicationContextAware
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()intgetPort()Returns the embedded LDAP server port.booleanvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetPort(int port) The embedded LDAP server port to connect to.voidstart()voidstop() 
- 
Constructor Details
- 
UnboundIdContainer
 
 - 
 - 
Method Details
- 
getPort
public int getPort()Description copied from interface:EmbeddedLdapServerContainerReturns the embedded LDAP server port.- Specified by:
 getPortin interfaceEmbeddedLdapServerContainer- Returns:
 - the embedded LDAP server port
 
 - 
setPort
public void setPort(int port) Description copied from interface:EmbeddedLdapServerContainerThe embedded LDAP server port to connect to. Supplying 0 as the port indicates that a random available port should be selected.- Specified by:
 setPortin interfaceEmbeddedLdapServerContainer- Parameters:
 port- the port to connect to
 - 
destroy
public void destroy()- Specified by:
 destroyin interfaceorg.springframework.beans.factory.DisposableBean
 - 
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
 afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
 - 
setApplicationContext
public void setApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
 setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
 org.springframework.beans.BeansException
 - 
start
public void start()- Specified by:
 startin interfaceorg.springframework.context.Lifecycle
 - 
stop
public void stop()- Specified by:
 stopin interfaceorg.springframework.context.Lifecycle
 - 
isRunning
public boolean isRunning()- Specified by:
 isRunningin interfaceorg.springframework.context.Lifecycle
 
 -