MyFaces CODI
  1. MyFaces CODI
  2. EXTCDI-8

producers for bean-validation artifacts

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: JEE-BV1-Module
    • Labels:
      None

      Description

      support for

      • javax.validation.Validator (compatible with EXTCDI-20)
      • javax.validation.ValidatorFactory (compatible with EXTCDI-20)
      • javax.validation.ConstraintValidatorFactory (compatible with EXTCDI-20)
      • javax.validation.MessageInterpolator

      usage e.g.:
      @Inject @Advanced
      private javax.validation.Validator validator;
      ...
      this.validator.validate(...);

        Activity

        Gerhard Petracek created issue -
        Hide
        Mark Struberg added a comment -

        OWB provides this already out of the box (if the openwebbeans-resource is in the classpath).
        Will ask JBoss guys whether this is also available if weld is used with native tomcat/jetty

        Show
        Mark Struberg added a comment - OWB provides this already out of the box (if the openwebbeans-resource is in the classpath). Will ask JBoss guys whether this is also available if weld is used with native tomcat/jetty
        Hide
        Mark Struberg added a comment -

        Weld doesn't provide this yet, OWB takes the Validator and ValidatorFactory from JNDI.

        Show
        Mark Struberg added a comment - Weld doesn't provide this yet, OWB takes the Validator and ValidatorFactory from JNDI.
        Hide
        Gerhard Petracek added a comment -

        extval supports some special features like dependency injection for constraint validators.
        furthermore, it's possible to provide a custom impl. easily. so there might be an add-on which uses cdi for the di part (like the current spring3 add-on)

        -> imo it makes sense that codi is able to re-use such customized versions at least for validation in the view-layer.
        so we could solve it via the @Jsf qualifier to get a special version (which is cached in the application scope of jsf).

        Show
        Gerhard Petracek added a comment - extval supports some special features like dependency injection for constraint validators. furthermore, it's possible to provide a custom impl. easily. so there might be an add-on which uses cdi for the di part (like the current spring3 add-on) -> imo it makes sense that codi is able to re-use such customized versions at least for validation in the view-layer. so we could solve it via the @Jsf qualifier to get a special version (which is cached in the application scope of jsf).
        Gerhard Petracek made changes -
        Field Original Value New Value
        Description in jee 6+ application servers it's possible to use @Inject in combination with
         - javax.validation.Validator
         - javax.validation.ValidatorFactory

        this should also work outside jee 6+ application servers.
        support for
         - javax.validation.Validator (compatible with EXTCDI-20)
         - javax.validation.ValidatorFactory (compatible with EXTCDI-20)
         - javax.validation.ConstraintValidatorFactory (compatible with EXTCDI-20)
         - javax.validation.MessageInterpolator

        usage e.g.:
        @Inject @Advanced
        private javax.validation.Validator validator;
        ...
        this.validator.validate(...);
        Gerhard Petracek made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Gerhard Petracek made changes -
        Assignee Gerhard Petracek [ gpetracek ]
        Gerhard Petracek made changes -
        Fix Version/s 1.0.0-SNAPSHOT [ 12314885 ]
        Component/s JEE-BV1-Module [ 12313498 ]
        Gerhard Petracek made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Gerhard Petracek
            Reporter:
            Gerhard Petracek
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development