incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
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 GMT
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<SPIProvider> ldr = ServiceLoader.load(SPIProvider.class);
+
+    public void start(BundleContext context) throws Exception {
+        callSPI();
+    }
+
+    private void callSPI() {
+        System.out.println("*** Loading the SPI...");
+
+        ServiceLoader<SPIProvider> 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());
+//    }
 }



Mime
View raw message