title: How to pass more parameters to spring validate method
body: <p>I have extension of org.springframework.validation.Validator.</p>
  
  <pre><code>public class MyValidator implements Validator {
  
      @Override
          public void validate(Object target, Errors errors) {
          ...
      }
  }
  </code></pre>
  
  <p>My goal is to pass more than one target to method.</p>
  
  <p>I don't like idea with overload <code>validate</code> method because it smells as bad code:
  <code>validate(Object target1, Object target1, Errors errors)</code> or creating map with needed targets.</p>
  
  <p>It will be good to know better approach regarding this case.</p>