Return-Path: Delivered-To: apmail-incubator-aries-commits-archive@minotaur.apache.org Received: (qmail 43376 invoked from network); 6 Dec 2010 14:32:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Dec 2010 14:32:22 -0000 Received: (qmail 27685 invoked by uid 500); 6 Dec 2010 14:32:21 -0000 Delivered-To: apmail-incubator-aries-commits-archive@incubator.apache.org Received: (qmail 27596 invoked by uid 500); 6 Dec 2010 14:32:21 -0000 Mailing-List: contact aries-commits-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-commits@incubator.apache.org Received: (qmail 27588 invoked by uid 99); 6 Dec 2010 14:32:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 14:32:20 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 14:32:18 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A8C0623889DA; Mon, 6 Dec 2010 14:31:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1042657 - in /incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/MyTestBundle: META-INF/MANIFEST.MF build.xml src/mytestbundle/Activator.java Date: Mon, 06 Dec 2010 14:31:56 -0000 To: aries-commits@incubator.apache.org From: davidb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101206143156.A8C0623889DA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: davidb Date: Mon Dec 6 14:31:56 2010 New Revision: 1042657 URL: http://svn.apache.org/viewvc?rev=1042657&view=rev Log: Small changes. Removed: incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/MyTestBundle/build.xml Modified: incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/MyTestBundle/META-INF/MANIFEST.MF incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/MyTestBundle/src/mytestbundle/Activator.java Modified: incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/MyTestBundle/META-INF/MANIFEST.MF URL: http://svn.apache.org/viewvc/incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/MyTestBundle/META-INF/MANIFEST.MF?rev=1042657&r1=1042656&r2=1042657&view=diff ============================================================================== --- incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/MyTestBundle/META-INF/MANIFEST.MF (original) +++ incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/MyTestBundle/META-INF/MANIFEST.MF Mon Dec 6 14:31:56 2010 @@ -6,4 +6,4 @@ Bundle-Version: 1.0.0.qualifier Bundle-Activator: mytestbundle.Activator Import-Package: org.apache.aries.spifly.mysvc, org.osgi.framework;version="1.3.0" -Bundle-RequiredExecutionEnvironment: JavaSE-1.6 +SPI-Consumer: true Modified: incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/MyTestBundle/src/mytestbundle/Activator.java URL: http://svn.apache.org/viewvc/incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/MyTestBundle/src/mytestbundle/Activator.java?rev=1042657&r1=1042656&r2=1042657&view=diff ============================================================================== --- incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/MyTestBundle/src/mytestbundle/Activator.java (original) +++ incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/MyTestBundle/src/mytestbundle/Activator.java Mon Dec 6 14:31:56 2010 @@ -25,19 +25,26 @@ import org.osgi.framework.BundleActivato import org.osgi.framework.BundleContext; public class Activator implements BundleActivator { - public void start(BundleContext context) throws Exception { - callSPI(); - } - - private void callSPI() { - System.out.println("*** Loading the SPI..."); - ServiceLoader ldr = ServiceLoader.load(SPIProvider.class); + + public void start(BundleContext context) throws Exception { + callSPI(); + } + + private void callSPI() { + System.out.println("*** Loading the SPI..."); + + ServiceLoader ldr = ServiceLoader.load(SPIProvider.class); for (SPIProvider spiObject : ldr) { - System.out.println("*** Invoking the SPI..."); + System.out.println("*** Invoking the SPI..."); spiObject.doit(); // invoke the SPI object } - } - - public void stop(BundleContext context) throws Exception { - } + } + + public void stop(BundleContext context) throws Exception { + } + +// This method is automatically generated in by SPI-Fly +// private static void $$FCCL$$(Class cls) { +// Util.fixContextClassloader("java.util.ServiceLoader", "load", cls, Activator.class.getClassLoader()); +// } }