title: Custom property in annotation for bean validation
body: <pre><code>public class DateTimeValidator implements ConstraintValidator&lt;DateTimeValidate, DateTime&gt; {
  
  private static final OffsetDateTime START_TIME = OffsetDateTime.parse("2015-10-20");
  
  @Override
  public boolean isValid(DateTime value, ConstraintValidatorContext context) {
      if (value == null) {
          return true;
      }
  
      if (value.getStartTime().isBefore(START_TIME)) {
          String msg = "this is invalid";
          setConstraintViolationMessage(START_DATE, msg, context);
          return false;
      }
  }
  
  @Override
  public void initialize(DateTimeValidate constraintAnnotation) {
  // TODO Auto-generated method stub
  } 
  </code></pre>
  
  <p>Is there a way I can make START_TIME dynamic? Here in the example I have hardcoded the value in the class itself. Is it possible that I can externalize this property in a properties file and when the validator is compiled it picks up the property from properties file for START_TIME.</p>