Package edu.vt.middleware.ldap.pool
Interface LdapFactory<T extends BaseLdap>
-
- Type Parameters:
T- type of ldap object
- All Known Implementing Classes:
AbstractLdapFactory,DefaultLdapFactory
public interface LdapFactory<T extends BaseLdap>LdapFactoryprovides an interface for creating, activating, validating, and destroying ldap objects.- Version:
- $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
- Author:
- Middleware Services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanactivate(T t)Prepare the supplied object for placement in the pool.Tcreate()Create a new ldap object.voiddestroy(T t)Destroy an ldap object.booleanpassivate(T t)Prepare the supplied object for removal from the pool.booleanvalidate(T t)Verify an ldap object is still viable for use in the pool.
-
-
-
Method Detail
-
create
T create()
Create a new ldap object.- Returns:
- ldap object
-
destroy
void destroy(T t)
Destroy an ldap object.- Parameters:
t- ldap object
-
activate
boolean activate(T t)
Prepare the supplied object for placement in the pool.- Parameters:
t- ldap object- Returns:
- whether the supplied object successfully activated
-
passivate
boolean passivate(T t)
Prepare the supplied object for removal from the pool.- Parameters:
t- ldap object- Returns:
- whether the supplied object successfully passivated
-
validate
boolean validate(T t)
Verify an ldap object is still viable for use in the pool.- Parameters:
t- ldap object- Returns:
- whether the supplied object is ready for use
-
-