You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by da...@apache.org on 2010/12/06 15:31:56 UTC
svn commit: r1042657 - in
/incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/MyTestBundle:
META-INF/MANIFEST.MF build.xml src/mytestbundle/Activator.java
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());
+// }
}