Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnboundIdContainer

        public UnboundIdContainer​(java.lang.String defaultPartitionSuffix,
                                  java.lang.String ldif)
    • Method Detail

      • 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 interface EmbeddedLdapServerContainer
        Parameters:
        port - the port to connect to
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • start

        public void start()
        Specified by:
        start in interface org.springframework.context.Lifecycle
      • stop

        public void stop()
        Specified by:
        stop in interface org.springframework.context.Lifecycle
      • isRunning

        public boolean isRunning()
        Specified by:
        isRunning in interface org.springframework.context.Lifecycle