[bv-dev] BVAL-238 Dependency injection in ConstraintViolation

Hardy Ferentschik hardy at hibernate.org
Wed Jan 4 06:17:46 EST 2012


On Jan 4, 2012, at 11:19 AM, Emmanuel Bernard wrote:

> The point of Hardy (and Gunnar) is that in a DI environment, the Validator(Factory) lifecycle would most likely be handled by the DI framework and thus that the DI could provide proper injected instance to the BV bootstrap. I have to admit I had not completely seen it that way.

Right.

> The BV spec / RI could provide the portable CDI @Provider that implements this logic. For other DIs, they will need to be responsible for it.

+1

--Hardy


More information about the beanvalidation-dev mailing list