|
Description:
|
Bean validation supports integrating with context and dependency injection (CDI) defined in JSR-299. This integration allows developers to use cdi-beans as constraint validators and take advantage of bean scopes supported in CDI. This works well with applications already heavily depend on CDI framework. However, it imposes some burdens on stand-alone applications which do not need CDI capability. In such cases, it makes sense that the bean validation framework should support some basic scopes for constraint validators. For example: it might make sense to have CDI or BV introduce an object-graph validation scope.
|