Return-Path: Delivered-To: apmail-incubator-aries-dev-archive@minotaur.apache.org Received: (qmail 89090 invoked from network); 12 Sep 2010 20:04:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Sep 2010 20:04:57 -0000 Received: (qmail 64606 invoked by uid 500); 12 Sep 2010 20:04:56 -0000 Delivered-To: apmail-incubator-aries-dev-archive@incubator.apache.org Received: (qmail 64314 invoked by uid 500); 12 Sep 2010 20:04:56 -0000 Mailing-List: contact aries-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: aries-dev@incubator.apache.org Delivered-To: mailing list aries-dev@incubator.apache.org Received: (qmail 64280 invoked by uid 99); 12 Sep 2010 20:04:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Sep 2010 20:04:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Sep 2010 20:04:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8CK4YGu018061 for ; Sun, 12 Sep 2010 20:04:34 GMT Message-ID: <14485259.143601284321874441.JavaMail.jira@thor> Date: Sun, 12 Sep 2010 16:04:34 -0400 (EDT) From: "Bartosz Kowalewski (JIRA)" To: aries-dev@incubator.apache.org Subject: [jira] Updated: (ARIES-373) Sample implementention of AspectJ-based SPI mechanisms for SPI-Fly In-Reply-To: <22280268.171901280972775855.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ARIES-373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bartosz Kowalewski updated ARIES-373: ------------------------------------- Attachment: (was: org.aspectj.weaver-1.6.7.20100105084524.jar) > Sample implementention of AspectJ-based SPI mechanisms for SPI-Fly > ------------------------------------------------------------------ > > Key: ARIES-373 > URL: https://issues.apache.org/jira/browse/ARIES-373 > Project: Aries > Issue Type: Improvement > Environment: SPI-Fly > Reporter: Bartosz Kowalewski > Attachments: aries-373-20100912.patch, aries-373-updated.patch, ARIES-373.patch > > > David Bosschaert some time ago contributed a set of Equinox Aspects-based examples showing how to use aspects to make SPI work inside an OSGi container. I promised to contribute an enhanced version of these mechanisms and integrate these into SPI-Fly /Maven projects, Pax Exam, etc./. I'll attach a patch with those changes in a moment. > Few important notes: > 1. This is not intended to be committed directly to Aries SVN. The only purpose of this patch is to provide initial impl that could be used when doing additional experiments and evaluation. The patch is dirty, I was in hurry when doing it and there are lots of ugly pieces of code inside :). If we decide to go with this approach, I'll prepare a clean patch once I'm back from vacation - in two weeks' time. > 2. The problems that were identified in the discussion about using AspectJ in SPI-Fly haven't been resolved yet. This includes (but is not limited to): > - being tightly coupled to Equinox; this piece of code is based on Equinox Aspects/Weaving; this will not work wit any other container > - inability to tell AspectJ to run an aspect on behalf of other bundle; each bundle that wants to use these new features, needs to contain an aspect and other settings like a Require-Bundle header > 3. This patch introduces a SPI-Consumer header and enhances the SPI-Provider header. A Pax Exam test show how to use this new functionality once you copy the aspect to your bundle and configure Require-Bundle header. > 4. I haven't found the latest version of Equinox Weaving in any of publicly available Maven repos. That is why, these libraries will need to be copied manually to the itests project (to the weaverBundles subdirectory). I'll attach these bundles to this JIRA. > This patch is huge, so I guess there might some issues with applying it. If you have problems with that, let me know and I'll try to generate it again. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.