Is it possible to have ApplicationContext use Validators when creating beans?

In Spring 3.0, ApplicationContext performs miscellaneous verification when creating beans and performing dependency injections.

It is possible to have it use a bean validator or should I have it call back a @PostConstruct method calling this validator?

Update

This validator would perform deeper validation than ApplicationContext.

Upvotes: 1

Views: 62

Answers (1)

Philippe Marschall
Philippe Marschall

Reputation: 4604

What do you want to validate? Depending on your needs BeanFactoryPostProcessor might fit.

Upvotes: 1

Related Questions