Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7595810195 for ; Sat, 27 Jul 2013 14:06:26 +0000 (UTC) Received: (qmail 36414 invoked by uid 500); 27 Jul 2013 14:06:24 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 36115 invoked by uid 500); 27 Jul 2013 14:06:24 -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 36088 invoked by uid 99); 27 Jul 2013 14:06:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Jul 2013 14:06:23 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.217.170] (HELO mail-lb0-f170.google.com) (209.85.217.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Jul 2013 14:06:17 +0000 Received: by mail-lb0-f170.google.com with SMTP id u10so3258330lbi.15 for ; Sat, 27 Jul 2013 07:05:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :x-gm-message-state; bh=V7E9B9l2Gy7lqo/yJwza6O+WE/2JHixX1Jj3/8meGLI=; b=VnXoclRgYwQwSR3laczNQLQasqH5nt7EPxn4/lsVmJetqAHf6UWSjTZKzjB6MmZDxG W82yVpbvvrfRj2TF09rh89i4L5wLqDDlX4KzuPplHS1GN1/iU/vdMCpZSn5tzaFvJGKW Hq9b2UNHk4B8IXK32X+8VODLt7AalaKpaWF4t4tH2h259VcDoR4ZTIzGR03XbDrXDqUD ZmBZb7Ghgoqb6IXZIljtjVX1yES/dEisnCrsLfdKocTRK7ZUj8lcZx1LxCQhGe58cxQA iV7d6jErppjOAfeLdDxT/VomynPkewLY8QOC7QVsq0vYju4cQo2SrTJejrRM+hO3X4T7 UIGw== X-Received: by 10.152.42.193 with SMTP id q1mr5230053lal.65.1374933937152; Sat, 27 Jul 2013 07:05:37 -0700 (PDT) MIME-Version: 1.0 Sender: jcarman@carmanconsulting.com Received: by 10.112.134.138 with HTTP; Sat, 27 Jul 2013 07:05:17 -0700 (PDT) In-Reply-To: References: From: James Carman Date: Sat, 27 Jul 2013 10:05:17 -0400 X-Google-Sender-Auth: jK_JJJXo7rN5AbPswSSDHWxdfBA Message-ID: Subject: Re: [proxy] and impl To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlO939L4a6FyNQnZpVKeNdFw4sprenHouInNvHBrUQ79FKqJO4NCia6HLmHRWCf8n1sVzkU X-Virus-Checked: Checked by ClamAV on apache.org While I get what you're saying, that's kind of the entire reason Commons Proxy was created. Proxy came about from my experience with Apache HiveMind and Javassist. We were constantly doing Javassist coding each time we wanted new proxying logic. There was a LOT of repeated code because of all the commonality. After a couple years of doing this, I decided to create a library which would consolidate that logic into one library and allow the user to provide small "snippets" (Interceptors, Invokers, ObjectProvider) to achieve what they wanted to do. You're right, Commons Proxy doesn't really fit in Apache Commons perfectly, since it is very "frameworky", but we decided to roll it in anyway. Anyway, so much for a history lesson. :) I have wanted an ASM-based proxy factory for a long time, but have just never had the time to get around to it. If you want to help us create an ASM-based proxy factory implementation, that would be great! I'm no ASM expert, so I wouldn't even know where to start. On Sat, Jul 27, 2013 at 9:51 AM, Romain Manni-Bucau wrote: > Hi > > On a mail on [monitoring] i put some point on proxy. The main question was > shouldnt proxy give a default impl of proxying instead of being a facade > (which needs to put all impl specifities in the api or a way to get them)? > > In tomee/openejb and owb we use asm to create proxies and InvocationHandler > standard interface. That's very powerful and insanely fast. > > Asm also provides some helpers like > http://asm.ow2.org/asm40/javadoc/user/org/objectweb/asm/commons/AdviceAdapter.html. > > My question is then: shouldnt proxy2 change a bit of spirit? --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org