org.springframework.ldap.pool2.validation

## Interface DirContextValidator

- All Known Implementing Classes:
    DefaultDirContextValidator

      public interface DirContextValidator

  A validator for `DirContext`s.
  Author:
    Eric Dalquist

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `validateDirContext(DirContextType contextType, DirContext dirContext)` Validates the `DirContext`.

- - ### Method Detail

    - #### 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 `DirContext`
        `dirContext` - The `DirContext` to validate.
      Returns:
        `true` if the `DirContext` operated correctly during validation.