Return-Path: Delivered-To: apmail-incubator-bval-user-archive@minotaur.apache.org Received: (qmail 47466 invoked from network); 20 Jul 2010 14:43:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Jul 2010 14:43:23 -0000 Received: (qmail 32433 invoked by uid 500); 20 Jul 2010 14:43:23 -0000 Delivered-To: apmail-incubator-bval-user-archive@incubator.apache.org Received: (qmail 32392 invoked by uid 500); 20 Jul 2010 14:43:23 -0000 Mailing-List: contact bval-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bval-user@incubator.apache.org Delivered-To: mailing list bval-user@incubator.apache.org Received: (qmail 32384 invoked by uid 99); 20 Jul 2010 14:43:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 14:43:23 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nchalko@google.com designates 216.239.44.51 as permitted sender) Received: from [216.239.44.51] (HELO smtp-out.google.com) (216.239.44.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 14:43:15 +0000 Received: from wpaz21.hot.corp.google.com (wpaz21.hot.corp.google.com [172.24.198.85]) by smtp-out.google.com with ESMTP id o6KEdrv0028234 for ; Tue, 20 Jul 2010 07:39:53 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1279636793; bh=lTsCaayDy4mCCoVw/G2ZdKw4TG4=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Content-Type:Content-Transfer-Encoding; b=ho0+uhyj1eb1qm5YPZdi3kAJvL6O3IRuGFnvghBbfbfk/dOjbxeZtMc3yX0Kp59pX nRa7/ZSZSxC9C0xzvn+mw== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:from:date:message-id: subject:to:content-type:content-transfer-encoding:x-system-of-record; b=ZvI9+ooOIVQfKzpLSZwsm9RyrSKq7PGYNWZd1v8vj/HG0+uB3GowH39RpPUR1bYJG hYzVKMqRvcWXqn4FlBk3w== Received: from pwj6 (pwj6.prod.google.com [10.241.219.70]) by wpaz21.hot.corp.google.com with ESMTP id o6KEdq1g018294 for ; Tue, 20 Jul 2010 07:39:53 -0700 Received: by pwj6 with SMTP id 6so2600052pwj.30 for ; Tue, 20 Jul 2010 07:39:52 -0700 (PDT) Received: by 10.142.215.7 with SMTP id n7mr6884485wfg.194.1279636785623; Tue, 20 Jul 2010 07:39:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.208.15 with HTTP; Tue, 20 Jul 2010 07:39:21 -0700 (PDT) In-Reply-To: <05ACC208-7029-474C-8FB5-97ACD8315BE8@gmail.com> References: <05ACC208-7029-474C-8FB5-97ACD8315BE8@gmail.com> From: Nick Chalko Date: Tue, 20 Jul 2010 07:39:21 -0700 Message-ID: Subject: Re: Bean Validation for GWT To: bval-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Jul 20, 2010 at 6:44 AM, Matt Benson wrote: > Hi Nick--so, the GWT alternative to reflection would be some form of > javascript inspection, or do they provide an API over that? =A0I never go= t > around to giving GWT a try, so I am completely unfamiliar with how it wor= ks > beyond a vague awareness that everything compiles to javascript (if that'= s > even correct). =A0It sounds like you're saying the entire app, including > bytecodes from third-party libraries, is ported and it all runs client-si= de, > with reflection being a (the?) java API that is conspicuously unavailable= . > =A0My initial reaction to this is that it this would seem likely to cause > problems working with many Java libraries. =A0To go beyond Bean Validatio= n > here, it sounds like a reflection analogue of slf4j might be in order, > whereby a secondary "reflection" API is defined, with implementation jars > provided at runtime. =A0Applications/libraries wanting to provide support= for > environments where java.reflect reflection is unavailable, but some > alternative exists, could then code to the redefined API. =A0It happens t= hat I > have contributed for some years to a library that includes such an API, a= nd > have given thought over the years to incubating an overhaul of it at Apac= he > (targeted for Commons). =A0If I've not guessed badly on any of the > fundamentals, this would seem a reasonable direction to take. > > -Matt > Matt, GWT use Differed binding (http://code.google.com/webtoolkit/doc/1.6/FAQ_Client.html#What_is_Deferred= _Binding?). My main question was, how isolated is the code that need reflection. My assumption is should only be needed in the code that actually validates an object graph. I will down load and start poking around in the code. My second question is, Is there interest a bval-gwt subproject? R, nick