Interface ConnectionCallback<T>
-
- Type Parameters:
T
- The callback type
public interface ConnectionCallback<T>
A callback for running code against a managedLdapConnection
.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
doWithConnection(LdapConnection connection)
Provides a managed connection to the implementation of this method.
-
-
-
Method Detail
-
doWithConnection
T doWithConnection(LdapConnection connection) throws LdapException
Provides a managed connection to the implementation of this method. The implementation is not responsible for open/close or borrow/return.- Parameters:
connection
- The connection supplied to the implementation.- Returns:
- Anything you want
- Throws:
LdapException
- If you want to
-
-