openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pinaki Poddar (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENJPA-1114) Bean Validation APIs should be an optional runtime dependency
Date Wed, 10 Jun 2009 13:12:07 GMT

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

Pinaki Poddar updated OPENJPA-1114:
-----------------------------------

    Attachment: openjpa-1114.2.txt

The attached patch shows how a ValidatingLifecycleManager can be configured without bringing
in compile-time dependency to Validation API jar.
This conventional plug-in route also helps you to configure VLEM as a bean. And hence this
patch can be improved.
For example, making ValidationMode and Factory setting as part of VLEM itself. This will help
removing separate API method on OpenJPAConfiguration for ValidationMode/factory which are
semantically interdependent but that fact is neither obvious nor perhaps enforceable within
the API.  

> Bean Validation APIs should be an optional runtime dependency
> -------------------------------------------------------------
>
>                 Key: OPENJPA-1114
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1114
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: validation
>            Reporter: Donald Woods
>            Assignee: Donald Woods
>             Fix For: 2.0.0-M2
>
>         Attachments: openjpa-1114.2.txt, OPENJPA-1114.patch, OPENJPA-1114.patch
>
>
> Bean Validation APIs should be an optional runtime dependency by using reflection to
determine if the APIs are available before accessing our ValidatorImpl class or any javax.validation.*
API classes.
> openjpa-persistence will set scope=provided on geronimo-validation_1.0_spec
> openjpa-all will include the spec in the aggregated all jar
> openjpa-persistence-jdbc will not add a test dependency on the spec
> openjpa-integration will be used to test the validation support via OPENJPA-1106

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message