Author: zoe
Date: Wed Dec 23 09:07:51 2009
New Revision: 893438
URL: http://svn.apache.org/viewvc?rev=893438&view=rev
Log:
ARIES-90 Move hello world blueprint samples
Added:
incubator/aries/trunk/samples/helloworld-samples/ (with props)
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/
(with props)
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/
(with props)
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/pom.xml
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/java/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/java/org/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/java/org/apache/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/java/org/apache/aries/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/java/org/apache/aries/blueprint/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/java/org/apache/aries/blueprint/helloworldapi/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/java/org/apache/aries/blueprint/helloworldapi/HelloWorldService.java
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/resources/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/resources/META-INF/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/resources/META-INF/MANIFEST.MF
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/
(with props)
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/pom.xml
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/src/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/src/main/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/src/main/resources/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/src/main/resources/configuration/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/src/main/resources/configuration/config.ini
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/
(with props)
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/pom.xml
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/java/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/java/org/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/java/org/apache/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/java/org/apache/aries/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/java/org/apache/aries/blueprint/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/java/org/apache/aries/blueprint/helloworldclient/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClient.java
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/resources/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/resources/OSGI-INF/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/resources/OSGI-INF/blueprint/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/resources/OSGI-INF/blueprint/config.xml
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/
(with props)
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/pom.xml
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/java/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/java/org/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/java/org/apache/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/java/org/apache/aries/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/java/org/apache/aries/blueprint/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/java/org/apache/aries/blueprint/helloworldserver/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/java/org/apache/aries/blueprint/helloworldserver/HelloWorldServiceImpl.java
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/resources/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/resources/OSGI-INF/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/resources/OSGI-INF/blueprint/
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/resources/OSGI-INF/blueprint/config.xml
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/pom.xml
incubator/aries/trunk/samples/helloworld-samples/pom.xml
Propchange: incubator/aries/trunk/samples/helloworld-samples/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Dec 23 09:07:51 2009
@@ -0,0 +1,3 @@
+.classpath
+.project
+.settings
Propchange:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Dec 23 09:07:51 2009
@@ -0,0 +1,3 @@
+.settings
+.classpath
+.project
Propchange:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Dec 23 09:07:51 2009
@@ -0,0 +1,4 @@
+.settings
+.classpath
+.project
+target
Added:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/pom.xml?rev=893438&view=auto
==============================================================================
---
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/pom.xml
(added)
+++
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/pom.xml
Wed Dec 23 09:07:51 2009
@@ -0,0 +1,45 @@
+<!--
+ 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.samples</groupId>
+ <artifactId>blueprint-helloworld</artifactId>
+ <version>1.0.0-incubating-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.apache.aries.samples.blueprint.helloworld.api</artifactId>
+ <name>Apache Aries Blueprint HelloWorld API</name>
+ <packaging>bundle</packaging>
+ <description>Example blueprint hello world application - api</description>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin
+ </artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+
<Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/java/org/apache/aries/blueprint/helloworldapi/HelloWorldService.java
URL:
http://svn.apache.org/viewvc/incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/java/org/apache/aries/blueprint/helloworldapi/HelloWorldService.java?rev=893438&view=auto
==============================================================================
---
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/java/org/apache/aries/blueprint/helloworldapi/HelloWorldService.java
(added)
+++
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/java/org/apache/aries/blueprint/helloworldapi/HelloWorldService.java
Wed Dec 23 09:07:51 2009
@@ -0,0 +1,26 @@
+/**
+ * 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.helloworldapi;
+
+public interface HelloWorldService {
+ public void hello();
+
+ public void startUp();
+}
Added:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/resources/META-INF/MANIFEST.MF
URL:
http://svn.apache.org/viewvc/incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/resources/META-INF/MANIFEST.MF?rev=893438&view=auto
==============================================================================
---
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/resources/META-INF/MANIFEST.MF
(added)
+++
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-api/src/main/resources/META-INF/MANIFEST.MF
Wed Dec 23 09:07:51 2009
@@ -0,0 +1,7 @@
+Manifest-Version: 1.0
+Bundle-SymbolicName: org.apache.aries.blueprint.blueprint-helloworld.b
+ lueprint-helloworldapi
+Export-Package: org.apache.aries.blueprint.helloworldapi
+Bundle-Version: 1.0.0.incubating-SNAPSHOT
+Bundle-Description: Example blueprint hello world api.
+Bundle-ManifestVersion: 2
Propchange:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Dec 23 09:07:51 2009
@@ -0,0 +1 @@
+target
Added:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/pom.xml?rev=893438&view=auto
==============================================================================
---
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/pom.xml
(added)
+++
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/pom.xml
Wed Dec 23 09:07:51 2009
@@ -0,0 +1,160 @@
+<?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.samples</groupId>
+ <artifactId>blueprint-helloworld</artifactId>
+ <version>1.0.0-incubating-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>blog-assembly</artifactId>
+ <name>Apache Aries blog sample assembly</name>
+ <packaging>pom</packaging>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.eclipse</groupId>
+ <artifactId>osgi</artifactId>
+ <version>3.5.0.v20090520</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.eclipse.equinox</groupId>
+ <artifactId>cm</artifactId>
+ <version>3.2.0-v20070116</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.eclipse.osgi</groupId>
+ <artifactId>services</artifactId>
+ <version>3.1.200-v20070605</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.ops4j.pax.logging</groupId>
+ <artifactId>pax-logging-api</artifactId>
+ <version>1.4</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.ops4j.pax.logging</groupId>
+ <artifactId>pax-logging-service</artifactId>
+ <version>1.4</version>
+ <exclusions>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.aries.blueprint</groupId>
+ <artifactId>org.apache.aries.blueprint</artifactId>
+ <version>1.0.0-incubating-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.aries</groupId>
+ <artifactId>org.apache.aries.util</artifactId>
+ <version>1.0.0-incubating-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.aries.samples</groupId>
+
<artifactId>org.apache.aries.samples.blueprint.helloworld.api</artifactId>
+ <version>1.0.0-incubating-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.aries.samples</groupId>
+
<artifactId>org.apache.aries.samples.blueprint.helloworld.server</artifactId>
+ <version>1.0.0-incubating-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.aries.samples</groupId>
+
<artifactId>org.apache.aries.samples.blueprint.helloworld.client</artifactId>
+ <version>1.0.0-incubating-SNAPSHOT</version>
+ </dependency>
+
+
+ </dependencies>
+
+ <build>
+
+ <resources>
+ <resource>
+ <directory>${pom.basedir}/src/main/resources</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ </resources>
+
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <configuration>
+
<outputDirectory>${project.build.directory}</outputDirectory>
+ </configuration>
+ <executions>
+ <execution>
+ <id>filter</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>resources</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <excludeTransitive>true</excludeTransitive>
+
<outputDirectory>${project.build.directory}</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
+
+
+
+
+
+
+
+
Added:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/src/main/resources/configuration/config.ini
URL:
http://svn.apache.org/viewvc/incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/src/main/resources/configuration/config.ini?rev=893438&view=auto
==============================================================================
---
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/src/main/resources/configuration/config.ini
(added)
+++
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-assembly/src/main/resources/configuration/config.ini
Wed Dec 23 09:07:51 2009
@@ -0,0 +1,3 @@
+osgi.bundles=cm-3.2.0-v20070...@start,services-3.1.200-v20070...@start,pax-logging-api-1.4....@start,pax-logging-service-1.4....@start,org.apache.aries.util-1.0.0-incubating-snapshot....@start,org.apache.aries.blueprint-1.0.0-incubating-snapshot....@start,org.apache.aries.samples.blueprint.helloworld....@start,org.apache.aries.samples.blueprint.helloworld.server,org.apache.aries.samples.blueprint.helloworld.client
+eclipse.ignoreApp=true
+org.ops4j.pax.logging.DefaultServiceLog.level=DEBUG
Propchange:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Dec 23 09:07:51 2009
@@ -0,0 +1,3 @@
+.classpath
+.project
+target
Added:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/pom.xml?rev=893438&view=auto
==============================================================================
---
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/pom.xml
(added)
+++
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/pom.xml
Wed Dec 23 09:07:51 2009
@@ -0,0 +1,53 @@
+<!--
+ 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.samples</groupId>
+ <artifactId>helloworld-samples</artifactId>
+ <version>1.0.0-incubating-SNAPSHOT</version>
+ </parent>
+
+
<artifactId>org.apache.aries.samples.blueprint.helloworld.client</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.artifactId}</Bundle-SymbolicName>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.aries.blueprint</groupId>
+
<artifactId>org.apache.aries.blueprint.helloworld.server</artifactId>
+ <version>1.0.0-incubating-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
+
Added:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClient.java
URL:
http://svn.apache.org/viewvc/incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClient.java?rev=893438&view=auto
==============================================================================
---
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClient.java
(added)
+++
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/java/org/apache/aries/blueprint/helloworldclient/HelloWorldClient.java
Wed Dec 23 09:07:51 2009
@@ -0,0 +1,43 @@
+/**
+ * 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.helloworldapi.HelloWorldService;
+
+public class HelloWorldClient {
+
+ HelloWorldService helloWorldService = null;
+
+ public void startUp() {
+ System.out.println("========>>>>Client HelloWorld: About to
execute a method from the Hello World service");
+ helloWorldService.hello();
+ System.out.println("========>>>>Client HelloWorld: ... if you
didn't just see a Hello World message something went wrong");
+ }
+
+ public HelloWorldService getHelloWorldService() {
+ return helloWorldService;
+ }
+
+ public void setHelloWorldService(HelloWorldService helloWorldService) {
+ this.helloWorldService = helloWorldService;
+
+ }
+
+}
+
Added:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/resources/OSGI-INF/blueprint/config.xml
URL:
http://svn.apache.org/viewvc/incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/resources/OSGI-INF/blueprint/config.xml?rev=893438&view=auto
==============================================================================
---
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/resources/OSGI-INF/blueprint/config.xml
(added)
+++
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-client/src/main/resources/OSGI-INF/blueprint/config.xml
Wed Dec 23 09:07:51 2009
@@ -0,0 +1,26 @@
+<?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">
+
+ <reference id="helloservice"
+
interface="org.apache.aries.blueprint.helloworldapi.HelloWorldService" />
+
+ <bean id="helloclient"
class="org.apache.aries.blueprint.helloworldclient.HelloWorldClient"
+ init-method="startUp">
+ <property name="helloWorldService" ref="helloservice" />
+ </bean>
+</blueprint>
Propchange:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Dec 23 09:07:51 2009
@@ -0,0 +1,4 @@
+.settings
+target
+.classpath
+.project
Added:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/pom.xml?rev=893438&view=auto
==============================================================================
---
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/pom.xml
(added)
+++
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/pom.xml
Wed Dec 23 09:07:51 2009
@@ -0,0 +1,53 @@
+<!--
+ 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.samples</groupId>
+ <artifactId>helloworld-samples</artifactId>
+ <version>1.0.0-incubating-SNAPSHOT</version>
+ </parent>
+
+
<artifactId>org.apache.aries.samples.blueprint.helloworld.server</artifactId>
+ <name>Apache Aries Blueprint HelloWorldServer</name>
+ <packaging>bundle</packaging>
+ <description>Example blueprint hello world application -
server</description>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin
+ </artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+
<Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.aries.blueprint</groupId>
+
<artifactId>org.apache.aries.blueprint.helloworld.api</artifactId>
+ <version>1.0.0-incubating-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
+
Added:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/java/org/apache/aries/blueprint/helloworldserver/HelloWorldServiceImpl.java
URL:
http://svn.apache.org/viewvc/incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/java/org/apache/aries/blueprint/helloworldserver/HelloWorldServiceImpl.java?rev=893438&view=auto
==============================================================================
---
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/java/org/apache/aries/blueprint/helloworldserver/HelloWorldServiceImpl.java
(added)
+++
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/java/org/apache/aries/blueprint/helloworldserver/HelloWorldServiceImpl.java
Wed Dec 23 09:07:51 2009
@@ -0,0 +1,33 @@
+/**
+ * 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.helloworldserver;
+import org.apache.aries.blueprint.helloworldapi.HelloWorldService;
+
+public class HelloWorldServiceImpl implements HelloWorldService {
+
+ public void hello() {
+ System.out.println("======>>> A message from the server: Hello
World!");
+ }
+
+ public void startUp() {
+ System.out.println("======>>> Starting HelloWorld Server");
+ }
+}
+
+
\ No newline at end of file
Added:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/resources/OSGI-INF/blueprint/config.xml
URL:
http://svn.apache.org/viewvc/incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/resources/OSGI-INF/blueprint/config.xml?rev=893438&view=auto
==============================================================================
---
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/resources/OSGI-INF/blueprint/config.xml
(added)
+++
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/blueprint-helloworld-server/src/main/resources/OSGI-INF/blueprint/config.xml
Wed Dec 23 09:07:51 2009
@@ -0,0 +1,27 @@
+<?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">
+
+ <bean id="helloservice"
+
class="org.apache.aries.blueprint.helloworldserver.HelloWorldServiceImpl"
+ init-method="startUp">
+ </bean>
+
+ <service ref="helloservice"
+
interface="org.apache.aries.blueprint.helloworldapi.HelloWorldService" />
+
+</blueprint>
Added:
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/pom.xml?rev=893438&view=auto
==============================================================================
---
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/pom.xml
(added)
+++
incubator/aries/trunk/samples/helloworld-samples/blueprint-helloworld/pom.xml
Wed Dec 23 09:07:51 2009
@@ -0,0 +1,39 @@
+
+ <!--
+ 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.samples</groupId>
+ <artifactId>helloworld-samples</artifactId>
+ <version>1.0.0-incubating-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>blueprint-helloworld</artifactId>
+ <name>Apache Aries Blueprint HelloWorld</name>
+ <packaging>pom</packaging>
+ <description>Example blueprint hello world application</description>
+
+ <modules>
+ <module>blueprint-helloworld-server</module>
+ <module>blueprint-helloworld-client</module>
+ <module>blueprint-helloworld-api</module>
+ </modules>
+
+</project>
Added: incubator/aries/trunk/samples/helloworld-samples/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/aries/trunk/samples/helloworld-samples/pom.xml?rev=893438&view=auto
==============================================================================
--- incubator/aries/trunk/samples/helloworld-samples/pom.xml (added)
+++ incubator/aries/trunk/samples/helloworld-samples/pom.xml Wed Dec 23
09:07:51 2009
@@ -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.
+ -->
+<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.samples</groupId>
+ <artifactId>samples</artifactId>
+ <version>1.0.0-incubating-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>helloworld-samples</artifactId>
+ <name>Apache Aries HelloWorld samples</name>
+ <packaging>pom</packaging>
+ <description>Example blueprint hello world application</description>
+
+ <modules>
+ <module>blueprint-helloworld</module>
+ </modules>
+
+
+</project>