Package org.springframework.ldap.core
Interface ContextExecutor<T>
-
public interface ContextExecutor<T>Interface for delegating an actual operation to be performed on aDirContext. For searches, useSearchExecutorin stead. A typical usage of this interface could be e.g.:ContextExecutor executor = new ContextExecutor() { public Object executeWithContext(DirContext ctx) throws NamingException { return ctx.lookup(dn); } };
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TexecuteWithContext(javax.naming.directory.DirContext ctx)Perform any operation on the context.
-
-
-
Method Detail
-
executeWithContext
T executeWithContext(javax.naming.directory.DirContext ctx) throws javax.naming.NamingException
Perform any operation on the context.- Parameters:
ctx- the DirContext to perform the operation on.- Returns:
- any object resulting from the operation - might be null.
- Throws:
javax.naming.NamingException- if the operation resulted in one.
-
-