public interface ContextExecutor
DirContext. For searches, use SearchExecutor in
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);
}
};
LdapTemplate.executeReadOnly(ContextExecutor),
LdapTemplate.executeReadWrite(ContextExecutor)| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
executeWithContext(javax.naming.directory.DirContext ctx)
Perform any operation on the context.
|
java.lang.Object executeWithContext(javax.naming.directory.DirContext ctx)
throws javax.naming.NamingException
ctx - the DirContext to perform the operation on.javax.naming.NamingException - if the operation resulted in one.