On 10/4/2010 4:11 AM, Jean-Louis MONTEIRO wrote:
Hello guys,
as per the spec, we should support bean validation injections.
@Resource ValidatorFactory validatorFactory;
@Resource Validator validator;
I'd like to work on, but in order to start, i need some inputs/hints.
Thoughts?
When running under Geronimo, the Validator and ValidatorFactory instance
can be retrieved using JNDI. If that fails, there's probably a bit more
work that needs to be done to set this up. The Geronimo code for
looking for the validation.xml in a module and building the module
ValidatorFactory instance can be found in the BValModuleBuilderExtension
class.
Rick
JLouis