Author: zoe
Date: Thu Oct 22 16:47:59 2009
New Revision: 828780

URL: http://svn.apache.org/viewvc?rev=828780&view=rev
Log:
Hello world client sample

Added:
    
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/pom.xml
    incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/
    
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/
    
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/
    
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/
    
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/apache/
    
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/apache/aries/
    
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/apache/aries/blueprint/
    
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/apache/aries/blueprint/helloworldclient/
    
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClient.java
    
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClientImpl.java
    
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/resources/
    
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/resources/OSGI-INF/
    
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/resources/OSGI-INF/blueprint/
    
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/resources/OSGI-INF/blueprint/config.xml
Modified:
    incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/   
(props changed)

Propchange: 
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Oct 22 16:47:59 2009
@@ -0,0 +1,4 @@
+.settings
+.classpath
+.project
+target

Added: 
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/pom.xml?rev=828780&view=auto
==============================================================================
--- 
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/pom.xml 
(added)
+++ 
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/pom.xml 
Thu Oct 22 16:47:59 2009
@@ -0,0 +1,65 @@
+<!--
+    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.blueprint</groupId>
+        <artifactId>blueprint</artifactId>
+        <version>1.0.0-incubating-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>helloworldclient</artifactId>
+    <name>Apache Aries Blueprint HelloWorldClient</name>
+    <packaging>bundle</packaging>
+    <description>Example blueprint hello world client 
application.</description>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin
+                </artifactId>
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        
<Bundle-SymbolicName>${pom.groupId}.helloworldclient</Bundle-SymbolicName>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+    <dependencies>
+        <dependency>
+            <groupId>org.eclipse</groupId>
+            <artifactId>osgi</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+               <groupId>org.apache.aries.blueprint</groupId>
+               <artifactId>aries-blueprint-api</artifactId>
+        </dependency>
+        <dependency>
+               <groupId>org.apache.aries.blueprint</groupId>
+               <artifactId>helloworldserver</artifactId>
+               <version>1.0.0-incubating-SNAPSHOT</version>
+        </dependency>
+    </dependencies>
+    <dependencyManagement>
+       <dependencies>
+       </dependencies>
+    </dependencyManagement>
+</project>

Added: 
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClient.java
URL: 
http://svn.apache.org/viewvc/incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClient.java?rev=828780&view=auto
==============================================================================
--- 
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClient.java
 (added)
+++ 
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClient.java
 Thu Oct 22 16:47:59 2009
@@ -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.blueprint.helloworldclient;
+
+public interface HelloWorldClient {
+       public void startUp();
+}

Added: 
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClientImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClientImpl.java?rev=828780&view=auto
==============================================================================
--- 
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClientImpl.java
 (added)
+++ 
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClientImpl.java
 Thu Oct 22 16:47:59 2009
@@ -0,0 +1,42 @@
+/**
+ * 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.blueprint.helloworldclient;
+
+import org.apache.aries.blueprint.helloworldserver.HelloWorldServer;
+
+public class HelloWorldClientImpl implements HelloWorldClient {
+
+       HelloWorldServer helloWorldComponent = null;
+
+       public void startUp() {
+               System.out.println("========>>>>Client HelloWorld: About to 
execute a method from the Hello World server");
+               helloWorldComponent.hello();
+               System.out.println("========>>>>Client HelloWorld: ... if you 
didn't just see a Hello World message something went wrong");
+       }
+
+       public HelloWorldServer getHelloWorldComponent() {
+               return helloWorldComponent;
+       }
+
+       public void setHelloWorldComponent(HelloWorldServer 
helloWorldComponent) {
+               this.helloWorldComponent = helloWorldComponent;
+
+       }
+
+}

Added: 
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/resources/OSGI-INF/blueprint/config.xml
URL: 
http://svn.apache.org/viewvc/incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/resources/OSGI-INF/blueprint/config.xml?rev=828780&view=auto
==============================================================================
--- 
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/resources/OSGI-INF/blueprint/config.xml
 (added)
+++ 
incubator/aries/trunk/blueprint/blueprint-helloworld/helloworldclient/src/main/resources/OSGI-INF/blueprint/config.xml
 Thu Oct 22 16:47:59 2009
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+       <!--
+               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.
+       -->
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
+       default-availability="optional">
+
+       <reference id="helloserver"
+               
interface="org.apache.aries.blueprint.helloworldserver.HelloWorldServer" />
+
+       <bean id="helloclient" 
class="org.apache.aries.blueprint.helloworldclient.HelloWorldClientImpl"
+               init-method="startUp">
+               <property name="helloWorldComponent" ref="helloserver" />
+       </bean>
+</blueprint>
+


Reply via email to