Class DefaultLdapFactory

  • All Implemented Interfaces:
    LdapFactory<Ldap>

    public class DefaultLdapFactory
    extends AbstractLdapFactory<Ldap>
    DefaultLdapFactory provides a simple implementation of an ldap factory.
    Version:
    $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
    Author:
    Middleware Services
    • Constructor Detail

      • DefaultLdapFactory

        public DefaultLdapFactory()
        This creates a new DefaultLdapFactory with the default properties file, which must be located in your classpath.
      • DefaultLdapFactory

        public DefaultLdapFactory​(java.io.InputStream is)
        This creates a new DefaultLdapFactory with the supplied input stream.
        Parameters:
        is - InputStream
      • DefaultLdapFactory

        public DefaultLdapFactory​(LdapConfig lc)
        This creates a new DefaultLdapFactory with the supplied ldap configuration. The ldap configuration will be marked as immutable by this factory.
        Parameters:
        lc - ldap config
    • Method Detail

      • getConnectOnCreate

        public boolean getConnectOnCreate()
        Returns whether ldap objects will attempt to connect after creation. Default is true.
        Returns:
        boolean
      • setConnectOnCreate

        public void setConnectOnCreate​(boolean b)
        This sets whether newly created ldap objects will attempt to connect. Default is true.
        Parameters:
        b - connect on create