You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2016/08/25 19:33:20 UTC

[jira] [Updated] (DELTASPIKE-1197) CDIAwareConstraintValidatorFactory should fall back to delegate when CDI is not active

     [ https://issues.apache.org/jira/browse/DELTASPIKE-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek updated DELTASPIKE-1197:
-----------------------------------------
    Assignee: John D. Ament

> CDIAwareConstraintValidatorFactory should fall back to delegate when CDI is not active
> --------------------------------------------------------------------------------------
>
>                 Key: DELTASPIKE-1197
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1197
>             Project: DeltaSpike
>          Issue Type: Improvement
>          Components: BeanValidation-Module
>    Affects Versions: 1.7.0
>            Reporter: Sean Flanigan
>            Assignee: John D. Ament
>
> If there is no contextual instance for a class, CDIAwareConstraintValidatorFactory.getInstance() falls back on the delegate ConstraintValidatorFactory. If the BeanManagerProvider is not active, it should have the same fallback. 
> This change would make testing in mixed environments easier (eg a mixture of CDI-Unit tests where Weld is active, and plain JUnit tests where Weld is not active), since CDIAwareConstraintValidatorFactory may be configured in validation.xml and could be difficult to override.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)