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 SummaryConstructors
- 
Method SummaryModifier 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- 
getPortpublic int getPort()Description copied from interface:EmbeddedLdapServerContainerReturns the embedded LDAP server port.- Specified by:
- getPortin interface- EmbeddedLdapServerContainer
- Returns:
- the embedded LDAP server port
 
- 
setPortpublic 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 interface- EmbeddedLdapServerContainer
- Parameters:
- port- the port to connect to
 
- 
destroypublic void destroy()- Specified by:
- destroyin interface- org.springframework.beans.factory.DisposableBean
 
- 
afterPropertiesSetpublic void afterPropertiesSet()- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
 
- 
setApplicationContextpublic void setApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
- setApplicationContextin interface- org.springframework.context.ApplicationContextAware
- Throws:
- org.springframework.beans.BeansException
 
- 
startpublic void start()- Specified by:
- startin interface- org.springframework.context.Lifecycle
 
- 
stoppublic void stop()- Specified by:
- stopin interface- org.springframework.context.Lifecycle
 
- 
isRunningpublic boolean isRunning()- Specified by:
- isRunningin interface- org.springframework.context.Lifecycle
 
 
-