javax.validation
Interface ConstraintValidatorFactory


public interface ConstraintValidatorFactory

Instantiate 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
<T extends ConstraintValidator<?,?>>
T
getInstance(java.lang.Class<T> key)
           
 

Method Detail

getInstance

<T extends ConstraintValidator<?,?>> T getInstance(java.lang.Class<T> key)
Parameters:
key - The class of the constraint validator to instantiate.
Returns:
A constraint validator instance of the specified class.


Submit a bug or feature

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

Generated on 10-February-2011 12:41