org.springframework.ldap.pool.validation
Interface DirContextValidator
- All Known Implementing Classes:
- DefaultDirContextValidator
public interface DirContextValidator
A validator for DirContexts.
- Author:
- Eric Dalquist
validateDirContext
boolean validateDirContext(DirContextType contextType,
DirContext dirContext)
- Validates the
DirContext. A valid DirContext should be able
to answer queries and if applicable write to the directory.
- Parameters:
contextType - The type of the DirContext, refers to if ContextSource.getReadOnlyContext() or ContextSource.getReadWriteContext() was called to create the DirContextdirContext - The DirContext to validate.
- Returns:
true if the DirContext operated correctly during validation.