/** * {@inheritDoc} */ @Override public <T> T execute( ConnectionCallback<T> connectionCallback ) { LdapConnection connection = null; try { connection = connectionPool.getConnection(); return connectionCallback.doWithConnection( connection ); } catch ( LdapException e ) { throw new LdapRuntimeException( e ); } finally { returnLdapConnection( connection ); } }
/** * {@inheritDoc} */ @Override public <T> T execute( ConnectionCallback<T> connectionCallback ) { LdapConnection connection = null; try { connection = connectionPool.getConnection(); return connectionCallback.doWithConnection( connection ); } catch ( LdapException e ) { throw new LdapRuntimeException( e ); } finally { returnLdapConnection( connection ); } }
/** * {@inheritDoc} */ @Override public <T> T execute( ConnectionCallback<T> connectionCallback ) { LdapConnection connection = null; try { connection = connectionPool.getConnection(); return connectionCallback.doWithConnection( connection ); } catch ( LdapException e ) { throw new LdapRuntimeException( e ); } finally { returnLdapConnection( connection ); } }