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-23 18:10:53 -0400 (Sun, 23 May 2010) $
Author:
Middleware Services

Method Summary
 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


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.