[cdi-dev] [JBoss JIRA] (CDI-241) Support dependency injection within Bean Validation constraint validators

Pete Muir (JIRA) jira-events at lists.jboss.org
Thu Aug 2 14:07:07 EDT 2012


     [ https://issues.jboss.org/browse/CDI-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir updated CDI-241:
--------------------------

       Issue Type: Tracker  (was: Feature Request)
    Fix Version/s: 1.1 (Proposed)


Changing this to a tracker issues, as I don't believe any changes should be made to the CDI spec to accomodate this. Updates should be in the Bean Validation spec.
                
> Support dependency injection within Bean Validation constraint validators
> -------------------------------------------------------------------------
>
>                 Key: CDI-241
>                 URL: https://issues.jboss.org/browse/CDI-241
>             Project: CDI Specification Issues
>          Issue Type: Tracker
>          Components: Java EE integration
>            Reporter: Gunnar Morling
>             Fix For: 1.1 (Proposed)
>
>
> CDI should integrate with Bean Validation to support dependency injection within BV {{ConstraintValidator}} implementations.
> From the BV 1.1 [spec early draft|http://beanvalidation.org/1.1/spec/#bootstrapping-usageandcontainerexpectation]:
> {quote}
> Java EE should obey the rules defined above and enable Context and Dependency Injection (CDI) support to {{ValidatorFactory}} instances. In particular:
> * Let {{Validator}} and {{ValidatorFactory}} object be injectable.
> * Use a default {{ConstraintValidatorFactory}} implementation that returns CDI managed {{ConstraintValidator}} objects. The scope of these instances is dependent as the Bean Validation provider is responsible for them.
> * Provide CDI managed instances of {{ConstraintValidatorFactory}}, {{MessageInterpolator}} and {{TraversableResovler}} if customized classes are requested in the XML deployment descriptor.
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the cdi-dev mailing list