T - type of ldap objectpublic abstract class AbstractLdapFactory<T extends BaseLdap> extends Object implements LdapFactory<T>
AbstractLdapFactory provides a basic implementation of an ldap
factory.| Modifier and Type | Field and Description |
|---|---|
protected LdapActivator<T> |
activator
For activating ldap objects.
|
protected org.apache.commons.logging.Log |
logger
Log for this class.
|
protected LdapPassivator<T> |
passivator
For passivating ldap objects.
|
protected LdapValidator<T> |
validator
For validating ldap objects.
|
| Constructor and Description |
|---|
AbstractLdapFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activate(T t)
Prepare the supplied object for placement in the pool.
|
abstract T |
create()
Create a new ldap object.
|
abstract void |
destroy(T t)
Destroy an ldap object.
|
LdapActivator<T> |
getLdapActivator()
Returns the ldap activator for this factory.
|
LdapPassivator<T> |
getLdapPassivator()
Returns the ldap passivator for this factory.
|
LdapValidator<T> |
getLdapValidator()
Returns the ldap validator for this factory.
|
boolean |
passivate(T t)
Prepare the supplied object for removal from the pool.
|
void |
setLdapActivator(LdapActivator<T> la)
Sets the ldap activator for this factory.
|
void |
setLdapPassivator(LdapPassivator<T> lp)
Sets the ldap passivator for this factory.
|
void |
setLdapValidator(LdapValidator<T> lv)
Sets the ldap validator for this factory.
|
boolean |
validate(T t)
Verify an ldap object is still viable for use in the pool.
|
protected final org.apache.commons.logging.Log logger
protected LdapActivator<T extends BaseLdap> activator
protected LdapPassivator<T extends BaseLdap> passivator
protected LdapValidator<T extends BaseLdap> validator
public void setLdapActivator(LdapActivator<T> la)
la - ldap activatorpublic LdapActivator<T> getLdapActivator()
public void setLdapPassivator(LdapPassivator<T> lp)
lp - ldap passivatorpublic LdapPassivator<T> getLdapPassivator()
public void setLdapValidator(LdapValidator<T> lv)
lv - ldap validatorpublic LdapValidator<T> getLdapValidator()
public abstract T create()
create in interface LdapFactory<T extends BaseLdap>public abstract void destroy(T t)
destroy in interface LdapFactory<T extends BaseLdap>t - ldap objectpublic boolean activate(T t)
activate in interface LdapFactory<T extends BaseLdap>t - ldap objectpublic boolean passivate(T t)
passivate in interface LdapFactory<T extends BaseLdap>t - ldap objectpublic boolean validate(T t)
validate in interface LdapFactory<T extends BaseLdap>t - ldap objectCopyright © 2014. All rights reserved.