title: Is there a standard way to enable JSR 303 Bean Validation using annotated method arguments
body: <p>I've been looking a around for a while now with no luck. I'n <strong>not</strong> using Spring MVC but still want to use <code>@javax.validation.Valid</code> to enable validation of method arguments. To give an example</p>
  
  <pre><code>public class EventServiceImpl implements IEventService {
      @Override
      public void invite(@Valid Event event, @Valid User user) { ... }
  }
  </code></pre>
  
  <p>Using MVC, this is enabled for <code>@Controller</code> annotated beans with a simple <code>&lt;mvc:annotation-driven/&gt;</code> (see <a href="http://static.springsource.org/spring/docs/3.0.5.RELEASE/spring-framework-reference/html/validation.html#validation-mvc-jsr303" rel="noreferrer">5.7.4.3 Configuring a JSR-303 Validator for use by Spring MVC</a>).</p>
  
  <p>Using AOP should be quite trivial. Nevertheless, I suspect there's some standard way to do this. Hence the question: Is there a similar thing for non-MVC applications and non-controller beans to enable input validation for annotated beans? </p>