You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cl...@apache.org on 2009/07/01 19:20:01 UTC

svn commit: r790276 - in /felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/felix/ src/main/java/org/apache/felix/ipojo/ src/main/jav...

Author: clement
Date: Wed Jul  1 17:20:00 2009
New Revision: 790276

URL: http://svn.apache.org/viewvc?rev=790276&view=rev
Log:
Initial Import of the AdderServiceConsumer. 

Added:
    felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/bundles.txt   (with props)
    felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/pom.xml   (with props)
    felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/
    felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/
    felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/java/
    felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/java/org/
    felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/java/org/apache/
    felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/java/org/apache/felix/
    felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/java/org/apache/felix/ipojo/
    felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/java/org/apache/felix/ipojo/remote/
    felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/java/org/apache/felix/ipojo/remote/consumer/
    felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/java/org/apache/felix/ipojo/remote/consumer/AdderConsumer.java   (with props)
    felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/resources/
    felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/resources/metadata.xml   (with props)

Added: felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/bundles.txt
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/bundles.txt?rev=790276&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/bundles.txt (added)
+++ felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/bundles.txt Wed Jul  1 17:20:00 2009
@@ -0,0 +1,10 @@
+id	State       Bundle
+0	ACTIVE      org.eclipse.osgi_3.5.0.v20090520
+1	ACTIVE      org.eclipse.osgi.util_3.2.0.v20090520-1800
+2	RESOLVED    org.eclipse.osgi.services_3.2.0.v20090520-1800
+3	ACTIVE      org.apache.felix.ipojo_1.2.0
+4	ACTIVE      AdderServiceInterface_0.0.1.SNAPSHOT
+5	ACTIVE      cxf-dosgi-ri-singlebundle-distribution_1.1.0.SNAPSHOT
+6	ACTIVE      AdderServiceConsumer_0.0.1.SNAPSHOT
+7	ACTIVE      AdderServiceImporter_0.0.1.SNAPSHOT
+

Propchange: felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/bundles.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/pom.xml
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/pom.xml?rev=790276&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/pom.xml (added)
+++ felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/pom.xml Wed Jul  1 17:20:00 2009
@@ -0,0 +1,60 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <packaging>bundle</packaging>
+  <groupId>org.apache.felix.ipojo.remote</groupId>
+  <artifactId>AdderServiceConsumer</artifactId>
+  <version>0.0.1-SNAPSHOT</version>
+  <name>Adder Service Consumer</name>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <version>1.4.3</version>
+        <extensions>true</extensions>
+        <configuration>
+          <instructions>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Private-Package>org.apache.felix.ipojo.remote.consumer</Private-Package>
+            <Import-Package>*</Import-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+      <plugin>
+	      <groupId>org.apache.felix</groupId>
+	      <artifactId>maven-ipojo-plugin</artifactId>
+	      <version>1.2.0</version>
+		  <executions>
+          	<execution>
+            	<goals>
+	              <goal>ipojo-bundle</goal>
+               </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+			<groupId>org.apache.maven.plugins</groupId>
+			<artifactId>maven-compiler-plugin</artifactId>
+			<configuration>
+				<source>1.5</source>
+				<target>1.5</target>
+			</configuration>
+		</plugin>
+    </plugins>
+  </build>
+   <dependencies>
+  	<dependency>
+  		<groupId>org.apache.felix.ipojo.remote</groupId>
+  		<artifactId>AdderServiceInterface</artifactId>
+  		<version>0.0.1-SNAPSHOT</version>
+  		<scope>compile</scope>
+  	</dependency>
+  	<dependency>
+  		<groupId>org.apache.felix</groupId>
+  		<artifactId>org.apache.felix.ipojo.annotations</artifactId>
+  		<version>1.2.0</version>
+  		<scope>compile</scope>
+  	</dependency>
+  </dependencies>
+</project>

Propchange: felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/java/org/apache/felix/ipojo/remote/consumer/AdderConsumer.java
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/java/org/apache/felix/ipojo/remote/consumer/AdderConsumer.java?rev=790276&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/java/org/apache/felix/ipojo/remote/consumer/AdderConsumer.java (added)
+++ felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/java/org/apache/felix/ipojo/remote/consumer/AdderConsumer.java Wed Jul  1 17:20:00 2009
@@ -0,0 +1,16 @@
+package org.apache.felix.ipojo.remote.consumer;
+
+import org.apache.felix.ipojo.annotations.Component;
+import org.apache.felix.ipojo.annotations.Requires;
+import org.apache.felix.ipojo.remote.adder.AdderService;
+
+@Component
+public class AdderConsumer {
+
+    @Requires
+    private AdderService adder;
+
+    public AdderConsumer() {
+        System.out.println("Using adder service: 1 + 1 = " + adder.add(1, 1));
+    }
+}

Propchange: felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/java/org/apache/felix/ipojo/remote/consumer/AdderConsumer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/resources/metadata.xml
URL: http://svn.apache.org/viewvc/felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/resources/metadata.xml?rev=790276&view=auto
==============================================================================
--- felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/resources/metadata.xml (added)
+++ felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/resources/metadata.xml Wed Jul  1 17:20:00 2009
@@ -0,0 +1,5 @@
+<ipojo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/CURRENT/core.xsd"
+	xmlns="org.apache.felix.ipojo">
+	<instance component="org.apache.felix.ipojo.remote.consumer.AdderConsumer" />
+</ipojo>
\ No newline at end of file

Propchange: felix/sandbox/clement/ipojo-tutorials/dosgi/AdderServiceConsumer/src/main/resources/metadata.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain