title: Where is ClassValidator in Hibernate Validator?
body: <p>Using <code>hibernate-validator-4.2.0.Final.jar</code> and the <code>ClassValidator</code> class is nowhere to be found inside of it. The official PDF for the <code>3.1.0.GA</code> release shows it as existing inside the <code>org.hibernate.validator</code> package, but inside both my jar and the official <a href="https://github.com/hibernate/hibernate-validator" rel="nofollow">repo</a> it is not there.</p>
  
  <p>This leads me to believe either:</p>
  
  <ul>
  <li>it has been deprecated in lieu of something else; or</li>
  <li>it has just been moved somewhere and I can't seem to find it!</li>
  </ul>
  
  <p>If it has been deprecated then what is the best way to use the annotations and to check if something validates (or not)? If it has been deprecated, then the "<em>old</em>" way of doing this was to use:</p>
  
  <pre><code>ClassValidator&lt;SomeBeanClass&gt; validator = new ClassValidator&lt;SomeBeanClass&gt;();
  SomeBeanClass bean = new SomeBeanClass();
  
  // use bean
  
  InvalidValues[] badVals = validator.getInvalidValues(bean);
  </code></pre>
  
  <p>And if its been moved, then where is it?!?! Thanks in advance!</p>