Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 91947 invoked from network); 23 Oct 2009 02:34:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Oct 2009 02:34:04 -0000 Received: (qmail 93539 invoked by uid 500); 23 Oct 2009 02:34:04 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 93412 invoked by uid 500); 23 Oct 2009 02:34:03 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 93402 invoked by uid 99); 23 Oct 2009 02:34:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2009 02:34:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of niall.pemberton@gmail.com designates 209.85.211.174 as permitted sender) Received: from [209.85.211.174] (HELO mail-yw0-f174.google.com) (209.85.211.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2009 02:33:55 +0000 Received: by ywh4 with SMTP id 4so6164985ywh.10 for ; Thu, 22 Oct 2009 19:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ZuTjzrwhDXDU8oQrUTS1kAQ6PEcgFpmc1dOArnqjFFg=; b=wLVYzVwGknU0O3jeGHcwZLDbrSonjMJ+AIm6X9qSbrOKluambotJKWMqMZ/jG5B3QV VHw6yR2PxvusBSgmXFO8d+Eqphd3wU5OqydtQAMQ7yA4hhKsTWOzur7ot902wX/1iNt1 Vxx0oXuZvHNcY+wkN1tNKLZMuokn8Fc1Dwchw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qM098J4VvB+ak5T5DOHeagn7TJxTcpQeNwtKHYhNviW/zws1RTPJBDr2NYl2I1MMqe 7maYy1cwbr33hAqgSuJ4zCyAFoM9DteWZ/kNxn90bOCeTa1lCiBzZlvXtu3nTacI4yYA rx8CVU45Qlckf6s6IHUuiCReK5cNR6qElX4B0= MIME-Version: 1.0 Received: by 10.101.8.22 with SMTP id l22mr3239679ani.24.1256265215023; Thu, 22 Oct 2009 19:33:35 -0700 (PDT) Date: Fri, 23 Oct 2009 03:33:34 +0100 Message-ID: <55afdc850910221933y2e6d8a12ncafb9dfb247e0922@mail.gmail.com> Subject: [validator] Direction of validator implementation based on JSR 303 From: Niall Pemberton To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org The current trunk in the validator2 sandbox is a copy of the Validator 1.4 code from "commons proper" - but I think we should dump all the existing validator framework code and just retain the "routines" package. Trying to maintain any sort of compatibility with the existing validator framework would be alot more work and code and create a real mess IMO and I think it would be better to not to even try. The "routines" package was refactored realtively recently(!) and can stand on its own. So I would like to propose the following direction for a Validator2 based on the Bean Validation Framework(JSR 303) - a project with three separate modules composing of: - The Bean Validation (JSR303) API - no dependencies - Standalone Validation Routines (based on existing validator routines package) - no dependencies including Bean Validation API - Validation Framework - JSR303 implementation (depends on two modules above) I have created an alternative branch in the Validator sandbox project based on the above approach: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/ I have created a "clean room" implementation of the Bean Validation API[1] which (hopefully) is complete except for JavaDocs. The only real functionality is in javax.validation.Validation - the rest are annotations, interfaces and exceptions. I have also copied the "routines" package into a standalone module[2]. So the next thing is to start the actual framework implementation module. How does this sound as an approach? Niall [1] http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/ [2] http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-routines/ [3] http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-framework/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org