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>
LdapFactory
provides 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 boolean
activate(T t)
Prepare the supplied object for placement in the pool.T
create()
Create a new ldap object.void
destroy(T t)
Destroy an ldap object.boolean
passivate(T t)
Prepare the supplied object for removal from the pool.boolean
validate(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
-
-