Return-Path: X-Original-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67A869C07 for ; Thu, 14 Jun 2012 21:04:39 +0000 (UTC) Received: (qmail 4870 invoked by uid 500); 14 Jun 2012 21:04:39 -0000 Delivered-To: apmail-incubator-deltaspike-dev-archive@incubator.apache.org Received: (qmail 4828 invoked by uid 500); 14 Jun 2012 21:04:39 -0000 Mailing-List: contact deltaspike-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltaspike-dev@incubator.apache.org Delivered-To: mailing list deltaspike-dev@incubator.apache.org Received: (qmail 4816 invoked by uid 99); 14 Jun 2012 21:04:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 21:04:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lightguard.jp@gmail.com designates 209.85.217.175 as permitted sender) Received: from [209.85.217.175] (HELO mail-lb0-f175.google.com) (209.85.217.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 21:04:33 +0000 Received: by lbol5 with SMTP id l5so2293548lbo.6 for ; Thu, 14 Jun 2012 14:04:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=XXqh/g/6ku6pdUZo6QI5Njyhup3O8UibjeCudlZ+f3I=; b=NgkDWpm10tLAbp3464Rx37i/65B2uN9Qmo/d55Nv9wcpMeGJl0ZmJO5BXEYLsVzVd+ MDm1oRG1MnPzRgxuOmV2kozSKKK+4TX7nNUA8oGfQIOqpTkRdc7bS/K1wQDQFBZZky1w vu2Dz7VuE0JCgSJYWeRzdyJvQ6UnSCdiMr5wzQiPUTZeqabnWokZdYY74QBkrqxb7J32 ojYr6IzQiyFhK2opbnoe/xMcMNoVmPj2imU20tnohfEUy5jCDvojnNfh2R5P+ZA50rrx tJBc+xnbBKdGUfZwaJGEmjLEJqA2EgFpFjzd7TsXtlQjrGCgRKoneeO5Px5B7/2JRvb3 Daxg== Received: by 10.112.28.137 with SMTP id b9mr1536498lbh.99.1339707851474; Thu, 14 Jun 2012 14:04:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.97.144 with HTTP; Thu, 14 Jun 2012 14:03:51 -0700 (PDT) In-Reply-To: <20120614062610.11E6D11397@tyr.zones.apache.org> References: <20120614062610.11E6D11397@tyr.zones.apache.org> From: Jason Porter Date: Thu, 14 Jun 2012 15:03:51 -0600 Message-ID: Subject: Re: git commit: DELTASPIKE-196 NO integration with Exception Handler needed! To: deltaspike-dev@incubator.apache.org Cc: deltaspike-commits@incubator.apache.org Content-Type: multipart/alternative; boundary=bcaec554d84497091304c2750abe X-Virus-Checked: Checked by ClamAV on apache.org --bcaec554d84497091304c2750abe Content-Type: text/plain; charset=UTF-8 Gerhard asked me to take a look at this, and I didn't have the full context on IRC. In speaking with him it sounded like a good idea to use the DS exception handling here, however, Mark makes an excellent point about not really being able to solve this without user intervention. We could use exception handling here and if there isn't any thing to handle it, we could rethrow the exception and halt the deployment anyway. Another thought just occurred to me, because we're really doing this before the application fully completes deployment, I'm not even 100% sure DeltaSpike exception handling would work, that's probably an implementation specific detail. In light of those two ideas, I'm going to stand by Mark and say we should leave it out. On Thu, Jun 14, 2012 at 12:26 AM, wrote: > Updated Branches: > refs/heads/master 9ca1855d7 -> 1c6354650 > > > DELTASPIKE-196 NO integration with Exception Handler needed! > > The DS Exception Handler is for _business_ methods. > Technical and configuration issues shall not be handled by DS > but by the user. We cannot recover from it without any > user interaction anyway... > > > Project: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/repo > Commit: > http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/commit/1c635465 > Tree: > http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/tree/1c635465 > Diff: > http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/diff/1c635465 > > Branch: refs/heads/master > Commit: 1c63546506457e1a74fed6ca92cb9d0c0d54a2fc > Parents: 9ca1855 > Author: Mark Struberg > Authored: Thu Jun 14 07:55:52 2012 +0200 > Committer: Mark Struberg > Committed: Thu Jun 14 07:55:52 2012 +0200 > > ---------------------------------------------------------------------- > .../impl/config/DefaultConfigPropertyProducer.java | 3 --- > 1 files changed, 0 insertions(+), 3 deletions(-) > ---------------------------------------------------------------------- > > > > http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/1c635465/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/config/DefaultConfigPropertyProducer.java > ---------------------------------------------------------------------- > diff --git > a/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/config/DefaultConfigPropertyProducer.java > b/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/config/DefaultConfigPropertyProducer.java > index d878139..cd4422e 100644 > --- > a/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/config/DefaultConfigPropertyProducer.java > +++ > b/deltaspike/core/impl/src/main/java/org/apache/deltaspike/core/impl/config/DefaultConfigPropertyProducer.java > @@ -54,7 +54,6 @@ public class DefaultConfigPropertyProducer extends > BaseConfigPropertyProducer > return null; > } > > - //X TODO integrate with the HandledHandler of DeltaSpike > return Integer.parseInt(configuredValue); > } > > @@ -69,7 +68,6 @@ public class DefaultConfigPropertyProducer extends > BaseConfigPropertyProducer > return null; > } > > - //X TODO integrate with the HandledHandler of DeltaSpike > return Long.parseLong(configuredValue); > } > > @@ -108,7 +106,6 @@ public class DefaultConfigPropertyProducer extends > BaseConfigPropertyProducer > } > > //X TODO think about something like @NumberFormat(...) > - //X TODO integrate with the HandledHandler of DeltaSpike > return Float.parseFloat(configuredValue); > } > } > > -- Jason Porter http://lightguard-jp.blogspot.com http://twitter.com/lightguardjp Software Engineer Open Source Advocate Author of Seam Catch - Next Generation Java Exception Handling PGP key id: 926CCFF5 PGP key available at: keyserver.net, pgp.mit.edu --bcaec554d84497091304c2750abe--