aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1095754 - in /aries/trunk/spi-fly: ./ spi-fly-examples/ spi-fly-examples/spi-fly-example-client/ spi-fly-examples/spi-fly-example-client/src/ spi-fly-examples/spi-fly-example-client/src/main/ spi-fly-examples/spi-fly-example-client/src/mai...
Date Thu, 21 Apr 2011 15:43:16 GMT
Author: davidb
Date: Thu Apr 21 15:43:14 2011
New Revision: 1095754

URL: http://svn.apache.org/viewvc?rev=1095754&view=rev
Log:
Initial set of example bundles to demo SPI providers and consumers. 

Added:
    aries/trunk/spi-fly/spi-fly-examples/
    aries/trunk/spi-fly/spi-fly-examples/pom.xml
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/pom.xml
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/src/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/src/main/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/src/main/java/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/src/main/java/org/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/src/main/java/org/apache/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/src/main/java/org/apache/aries/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/src/main/java/org/apache/aries/spifly/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/src/main/java/org/apache/aries/spifly/client/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/src/main/java/org/apache/aries/spifly/client/Activator.java
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/pom.xml
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/java/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/java/org/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/java/org/apache/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/java/org/apache/aries/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/java/org/apache/aries/spifly/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/java/org/apache/aries/spifly/mysvc/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/java/org/apache/aries/spifly/mysvc/impl/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/java/org/apache/aries/spifly/mysvc/impl/SPIProviderImpl.java
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/resources/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/resources/META-INF/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/resources/META-INF/services/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/resources/META-INF/services/org.apache.aries.spifly.mysvc.SPIProvider
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/pom.xml
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/java/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/java/org/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/java/org/apache/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/java/org/apache/aries/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/java/org/apache/aries/spifly/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/java/org/apache/aries/spifly/mysvc/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/java/org/apache/aries/spifly/mysvc/impl2/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/java/org/apache/aries/spifly/mysvc/impl2/SPIProviderImpl.java
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/resources/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/resources/META-INF/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/resources/META-INF/services/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/resources/META-INF/services/org.apache.aries.spifly.mysvc.SPIProvider
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/pom.xml
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/src/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/src/main/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/src/main/java/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/src/main/java/org/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/src/main/java/org/apache/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/src/main/java/org/apache/aries/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/src/main/java/org/apache/aries/spifly/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/src/main/java/org/apache/aries/spifly/mysvc/
    aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/src/main/java/org/apache/aries/spifly/mysvc/SPIProvider.java
Modified:
    aries/trunk/spi-fly/pom.xml

Modified: aries/trunk/spi-fly/pom.xml
URL: http://svn.apache.org/viewvc/aries/trunk/spi-fly/pom.xml?rev=1095754&r1=1095753&r2=1095754&view=diff
==============================================================================
--- aries/trunk/spi-fly/pom.xml (original)
+++ aries/trunk/spi-fly/pom.xml Thu Apr 21 15:43:14 2011
@@ -64,5 +64,6 @@
         <module>spi-fly-dynamic-bundle</module>
         <module>spi-fly-static-tool</module>
         <module>spi-fly-static-bundle</module>
+        <module>spi-fly-examples</module>
     </modules>
 </project>

Added: aries/trunk/spi-fly/spi-fly-examples/pom.xml
URL: http://svn.apache.org/viewvc/aries/trunk/spi-fly/spi-fly-examples/pom.xml?rev=1095754&view=auto
==============================================================================
--- aries/trunk/spi-fly/spi-fly-examples/pom.xml (added)
+++ aries/trunk/spi-fly/spi-fly-examples/pom.xml Thu Apr 21 15:43:14 2011
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.aries.spifly</groupId>
+        <artifactId>spifly</artifactId>
+        <version>0.4-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.aries.spifly.examples</groupId>
+    <artifactId>examples</artifactId>
+    <name>Apache Aries SPI Fly Examples</name>
+    <version>0.4-SNAPSHOT</version>
+    <packaging>pom</packaging>
+
+    <description>
+        SPI examples
+    </description>
+    
+    <modules>
+        <module>spi-fly-example-spi</module>
+        <module>spi-fly-example-client</module>
+        <module>spi-fly-example-provider1</module>
+        <module>spi-fly-example-provider2</module>
+    </modules>
+</project>

Added: aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/pom.xml
URL: http://svn.apache.org/viewvc/aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/pom.xml?rev=1095754&view=auto
==============================================================================
--- aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/pom.xml (added)
+++ aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/pom.xml Thu Apr 21 15:43:14
2011
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+    <!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+    -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.aries.spifly.examples</groupId>
+        <artifactId>examples</artifactId>
+        <version>0.4-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>org.apache.aries.spifly.examples.client</artifactId>
+    <packaging>bundle</packaging>
+    <name>Apache Aries Example SPI Client Bundle</name>
+    <description>
+        A Bundle that uses the java.util.ServiceLoader() API.
+    </description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.core</artifactId>
+            <scope>provided</scope>
+        </dependency>        
+
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.compendium</artifactId>
+            <scope>provided</scope>
+        </dependency>        
+        
+        <dependency>
+            <groupId>org.apache.aries.spifly.examples</groupId>
+            <artifactId>org.apache.aries.spifly.examples.spi</artifactId>
+            <version>${project.version}</version>
+            <scope>provided</scope>
+        </dependency>        
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Import-Package>
+                            *
+                        </Import-Package>
+                        <Export-Package>
+                        </Export-Package>
+                        <Private-Package>
+                            org.apache.aries.spifly.client
+                        </Private-Package>
+                        <Bundle-Activator>org.apache.aries.spifly.client.Activator</Bundle-Activator>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Added: aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/src/main/java/org/apache/aries/spifly/client/Activator.java
URL: http://svn.apache.org/viewvc/aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/src/main/java/org/apache/aries/spifly/client/Activator.java?rev=1095754&view=auto
==============================================================================
--- aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/src/main/java/org/apache/aries/spifly/client/Activator.java
(added)
+++ aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-client/src/main/java/org/apache/aries/spifly/client/Activator.java
Thu Apr 21 15:43:14 2011
@@ -0,0 +1,37 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.spifly.client;
+
+import java.util.ServiceLoader;
+
+import org.apache.aries.spifly.mysvc.SPIProvider;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+public class Activator implements BundleActivator {
+	public void start(BundleContext context) throws Exception {
+		ServiceLoader<SPIProvider> ldr = ServiceLoader.load(SPIProvider.class);
+        for (SPIProvider spiObject : ldr) {
+            spiObject.doit(); // invoke the SPI object
+        }
+	}
+	
+	public void stop(BundleContext context) throws Exception {
+	}
+}

Added: aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/pom.xml
URL: http://svn.apache.org/viewvc/aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/pom.xml?rev=1095754&view=auto
==============================================================================
--- aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/pom.xml (added)
+++ aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/pom.xml Thu Apr 21 15:43:14
2011
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+    <!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+    -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.aries.spifly.examples</groupId>
+        <artifactId>examples</artifactId>
+        <version>0.4-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>org.apache.aries.spifly.examples.provider1</artifactId>
+    <packaging>bundle</packaging>
+    <name>Apache Aries Example SPI Provider Bundle 1</name>
+    <description>
+        A Bundle providing a service
+    </description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.aries.spifly.examples</groupId>
+            <artifactId>org.apache.aries.spifly.examples.spi</artifactId>
+            <version>${project.version}</version>
+            <scope>provided</scope>
+        </dependency>        
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Import-Package>
+                            *
+                        </Import-Package>
+                        <Export-Package>
+                        </Export-Package>
+                        <Private-Package>
+                            org.apache.aries.spifly.mysvc.impl
+                        </Private-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Added: aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/java/org/apache/aries/spifly/mysvc/impl/SPIProviderImpl.java
URL: http://svn.apache.org/viewvc/aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/java/org/apache/aries/spifly/mysvc/impl/SPIProviderImpl.java?rev=1095754&view=auto
==============================================================================
--- aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/java/org/apache/aries/spifly/mysvc/impl/SPIProviderImpl.java
(added)
+++ aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/java/org/apache/aries/spifly/mysvc/impl/SPIProviderImpl.java
Thu Apr 21 15:43:14 2011
@@ -0,0 +1,28 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.spifly.mysvc.impl;
+
+import org.apache.aries.spifly.mysvc.SPIProvider;
+
+public class SPIProviderImpl extends SPIProvider {
+	@Override
+	public void doit() {
+		System.out.println("Doing it!");
+	}
+}

Added: aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/resources/META-INF/services/org.apache.aries.spifly.mysvc.SPIProvider
URL: http://svn.apache.org/viewvc/aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/resources/META-INF/services/org.apache.aries.spifly.mysvc.SPIProvider?rev=1095754&view=auto
==============================================================================
--- aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/resources/META-INF/services/org.apache.aries.spifly.mysvc.SPIProvider
(added)
+++ aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider1/src/main/resources/META-INF/services/org.apache.aries.spifly.mysvc.SPIProvider
Thu Apr 21 15:43:14 2011
@@ -0,0 +1 @@
+org.apache.aries.spifly.mysvc.impl.SPIProviderImpl
\ No newline at end of file

Added: aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/pom.xml
URL: http://svn.apache.org/viewvc/aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/pom.xml?rev=1095754&view=auto
==============================================================================
--- aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/pom.xml (added)
+++ aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/pom.xml Thu Apr 21 15:43:14
2011
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+    <!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+    -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.aries.spifly.examples</groupId>
+        <artifactId>examples</artifactId>
+        <version>0.4-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>org.apache.aries.spifly.examples.provider2</artifactId>
+    <packaging>bundle</packaging>
+    <name>Apache Aries Example SPI Provider Bundle 2</name>
+    <description>
+        A Bundle providing a service
+    </description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.aries.spifly.examples</groupId>
+            <artifactId>org.apache.aries.spifly.examples.spi</artifactId>
+            <version>${project.version}</version>
+            <scope>provided</scope>
+        </dependency>        
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Import-Package>
+                            *
+                        </Import-Package>
+                        <Export-Package>
+                        </Export-Package>
+                        <Private-Package>
+                            org.apache.aries.spifly.mysvc.impl2
+                        </Private-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Added: aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/java/org/apache/aries/spifly/mysvc/impl2/SPIProviderImpl.java
URL: http://svn.apache.org/viewvc/aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/java/org/apache/aries/spifly/mysvc/impl2/SPIProviderImpl.java?rev=1095754&view=auto
==============================================================================
--- aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/java/org/apache/aries/spifly/mysvc/impl2/SPIProviderImpl.java
(added)
+++ aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/java/org/apache/aries/spifly/mysvc/impl2/SPIProviderImpl.java
Thu Apr 21 15:43:14 2011
@@ -0,0 +1,28 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.spifly.mysvc.impl2;
+
+import org.apache.aries.spifly.mysvc.SPIProvider;
+
+public class SPIProviderImpl extends SPIProvider {
+	@Override
+	public void doit() {
+		System.out.println("Doing it too!");
+	}
+}

Added: aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/resources/META-INF/services/org.apache.aries.spifly.mysvc.SPIProvider
URL: http://svn.apache.org/viewvc/aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/resources/META-INF/services/org.apache.aries.spifly.mysvc.SPIProvider?rev=1095754&view=auto
==============================================================================
--- aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/resources/META-INF/services/org.apache.aries.spifly.mysvc.SPIProvider
(added)
+++ aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-provider2/src/main/resources/META-INF/services/org.apache.aries.spifly.mysvc.SPIProvider
Thu Apr 21 15:43:14 2011
@@ -0,0 +1 @@
+org.apache.aries.spifly.mysvc.impl2.SPIProviderImpl
\ No newline at end of file

Added: aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/pom.xml
URL: http://svn.apache.org/viewvc/aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/pom.xml?rev=1095754&view=auto
==============================================================================
--- aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/pom.xml (added)
+++ aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/pom.xml Thu Apr 21 15:43:14 2011
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+    <!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+    -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.aries.spifly.examples</groupId>
+        <artifactId>examples</artifactId>
+        <version>0.4-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>org.apache.aries.spifly.examples.spi</artifactId>
+    <packaging>bundle</packaging>
+    <name>Apache Aries Example SPI Interface</name>
+    <description>
+        This is the API implemented by example SPI providers and used by the example SPI
client 
+    </description>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Import-Package>
+                            *
+                        </Import-Package>
+                        <Export-Package>
+                            *
+                        </Export-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Added: aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/src/main/java/org/apache/aries/spifly/mysvc/SPIProvider.java
URL: http://svn.apache.org/viewvc/aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/src/main/java/org/apache/aries/spifly/mysvc/SPIProvider.java?rev=1095754&view=auto
==============================================================================
--- aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/src/main/java/org/apache/aries/spifly/mysvc/SPIProvider.java
(added)
+++ aries/trunk/spi-fly/spi-fly-examples/spi-fly-example-spi/src/main/java/org/apache/aries/spifly/mysvc/SPIProvider.java
Thu Apr 21 15:43:14 2011
@@ -0,0 +1,23 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.spifly.mysvc;
+
+public abstract class SPIProvider {
+	public abstract void doit();
+}



Mime
View raw message