title: How to get some common data in a custom ConstraintValidator
body: <p>I am validating a input class using Java validation api and hibernate validator.
  i have created few custom annontation for some business validation and i am using these annotation on the input class. below is an example of such annotation validator - </p>
  
  <p>import javax.validation.ConstraintValidator;
  import javax.validation.ConstraintValidatorContext;</p>
  
  <pre><code>public class DBColumnConstraintValidator implements   ConstraintValidator&lt;DatabaseColumnConstraint, Object&gt; {
  
  private DBColumnConstraintValidator databaseColumnConstraint;
  
  private final List&lt;DatabaseConstraintValidationStep&gt; steps = new ArrayList&lt;DatabaseConstraintValidationStep&gt;();
  
  @Override
  public void initialize(DBColumnConstraintValidator  databaseColumnConstraint) {
  
  
  
  }
  
  @Override
  public boolean isValid(Object value, ConstraintValidatorContext context) {
  
      //Validation logic 
  
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I want to use some data for my validation logic inside isValid() method and this data is common and will be used by few other validator classes as well.</p>
  
  <p>is there any way to set or make  that common data available to isValid() method?</p>