javax.validation

## Interface ConstraintValidatorFactory

-     public interface ConstraintValidatorFactory

  Instantiates a `ConstraintValidator` instance based off its class. The `ConstraintValidatorFactory` is not responsible for calling `ConstraintValidator.initialize(java.lang.annotation.Annotation)`.
  Author:
    Dhanji R. Prasanna, Emmanuel Bernard, Hardy Ferentschik

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T extends ConstraintValidator<?,?>> T` | `getInstance(Class<T> key)`
    `void` | `releaseInstance(ConstraintValidator<?,?> instance)` Signals `ConstraintValidatorFactory` that the instance is no longer being used by the Bean Validation provider.

- - ### Method Detail

    - #### getInstance

          <T extends ConstraintValidator<?,?>> T getInstance(Class<T> key)

      Parameters:
        `key` - The class of the constraint validator to instantiate
      Returns:
        A new constraint validator instance of the specified class

    - #### releaseInstance

          void releaseInstance(ConstraintValidator<?,?> instance)

      Signals `ConstraintValidatorFactory` that the instance is no longer being used by the Bean Validation provider.
      Parameters:
        `instance` - validator being released
      Since:
        1.1

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.