public class DefaultLdapFactory extends AbstractLdapFactory<Ldap>
DefaultLdapFactory provides a simple implementation of an ldap
factory.activator, logger, passivator, validator| Constructor and Description |
|---|
DefaultLdapFactory()
This creates a new
DefaultLdapFactory with the default
properties file, which must be located in your classpath. |
DefaultLdapFactory(InputStream is)
This creates a new
DefaultLdapFactory with the supplied input
stream. |
DefaultLdapFactory(LdapConfig lc)
This creates a new
DefaultLdapFactory with the supplied ldap
configuration. |
| Modifier and Type | Method and Description |
|---|---|
Ldap |
create()
Create a new ldap object.
|
void |
destroy(Ldap l)
Destroy an ldap object.
|
boolean |
getConnectOnCreate()
Returns whether ldap objects will attempt to connect after creation.
|
void |
setConnectOnCreate(boolean b)
This sets whether newly created ldap objects will attempt to connect.
|
activate, getLdapActivator, getLdapPassivator, getLdapValidator, passivate, setLdapActivator, setLdapPassivator, setLdapValidator, validatepublic DefaultLdapFactory()
DefaultLdapFactory with the default
properties file, which must be located in your classpath.public DefaultLdapFactory(InputStream is)
DefaultLdapFactory with the supplied input
stream.is - InputStreampublic DefaultLdapFactory(LdapConfig lc)
DefaultLdapFactory with the supplied ldap
configuration. The ldap configuration will be marked as immutable by this
factory.lc - ldap configpublic boolean getConnectOnCreate()
booleanpublic void setConnectOnCreate(boolean b)
b - connect on createpublic Ldap create()
create in interface LdapFactory<Ldap>create in class AbstractLdapFactory<Ldap>public void destroy(Ldap l)
destroy in interface LdapFactory<Ldap>destroy in class AbstractLdapFactory<Ldap>l - ldap objectCopyright © 2014. All rights reserved.