cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From egl...@apache.org
Subject svn commit: r710040 - in /cxf/sandbox/dosgi/samples: ./ spring_dm/ spring_dm/client/ spring_dm/client/src/ spring_dm/client/src/main/ spring_dm/client/src/main/java/ spring_dm/client/src/main/java/org/ spring_dm/client/src/main/java/org/apache/ spring_...
Date Mon, 03 Nov 2008 12:08:26 GMT
Author: eglynn
Date: Mon Nov  3 04:08:24 2008
New Revision: 710040

URL: http://svn.apache.org/viewvc?rev=710040&view=rev
Log:
[dOSGi] Adding SpringDM-based demo on behalf of David Bosschaert (CXF-1879)

Added:
    cxf/sandbox/dosgi/samples/spring_dm/
    cxf/sandbox/dosgi/samples/spring_dm/client/
    cxf/sandbox/dosgi/samples/spring_dm/client/pom.xml   (with props)
    cxf/sandbox/dosgi/samples/spring_dm/client/src/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/org/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/org/apache/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/org/apache/cxf/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/org/apache/cxf/dosgi/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/org/apache/cxf/dosgi/samples/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/org/apache/cxf/dosgi/samples/springdm/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/org/apache/cxf/dosgi/samples/springdm/client/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/org/apache/cxf/dosgi/samples/springdm/client/DinnerServiceConsumer.java
  (with props)
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/META-INF/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/META-INF/spring/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/META-INF/spring/client-spring.xml
  (with props)
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/OSGI-INF/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/OSGI-INF/remote-services/
    cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/OSGI-INF/remote-services/remote-services.xml
  (with props)
    cxf/sandbox/dosgi/samples/spring_dm/impl/
    cxf/sandbox/dosgi/samples/spring_dm/impl/pom.xml   (with props)
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/org/
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/org/apache/
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/org/apache/cxf/
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/org/apache/cxf/dosgi/
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/org/apache/cxf/dosgi/samples/
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/org/apache/cxf/dosgi/samples/springdm/
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/org/apache/cxf/dosgi/samples/springdm/impl/
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/org/apache/cxf/dosgi/samples/springdm/impl/DinnerServiceImpl.java
  (with props)
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/resources/
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/resources/META-INF/
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/resources/META-INF/spring/
    cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/resources/META-INF/spring/spring.xml
  (with props)
    cxf/sandbox/dosgi/samples/spring_dm/interface/
    cxf/sandbox/dosgi/samples/spring_dm/interface/pom.xml   (with props)
    cxf/sandbox/dosgi/samples/spring_dm/interface/src/
    cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/
    cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/
    cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/
    cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/
    cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/
    cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/
    cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/
    cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/
    cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/DinnerService.java
  (with props)
    cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/Restaurant.java
  (with props)
    cxf/sandbox/dosgi/samples/spring_dm/pom.xml   (with props)
Modified:
    cxf/sandbox/dosgi/samples/pom.xml

Modified: cxf/sandbox/dosgi/samples/pom.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/samples/pom.xml?rev=710040&r1=710039&r2=710040&view=diff
==============================================================================
--- cxf/sandbox/dosgi/samples/pom.xml (original)
+++ cxf/sandbox/dosgi/samples/pom.xml Mon Nov  3 04:08:24 2008
@@ -19,5 +19,6 @@
     <modules>
       <module>simple_pojo</module> 
       <module>greeter</module>
+      <module>spring_dm</module>
     </modules> 
 </project>

Added: cxf/sandbox/dosgi/samples/spring_dm/client/pom.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/samples/spring_dm/client/pom.xml?rev=710040&view=auto
==============================================================================
--- cxf/sandbox/dosgi/samples/spring_dm/client/pom.xml (added)
+++ cxf/sandbox/dosgi/samples/spring_dm/client/pom.xml Mon Nov  3 04:08:24 2008
@@ -0,0 +1,58 @@
+<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">
+<!--
+  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.
+-->
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.cxf</groupId>
+  <artifactId>cxf-dosgi-ri-samples-spring-dm-client</artifactId>
+  <packaging>bundle</packaging>
+  <name>Distributed OSGI Spring-DM Sample Client Bundle</name>
+  <version>1.0-SNAPSHOT</version>
+
+  <parent>
+    <groupId>org.apache.cxf</groupId>
+    <artifactId>cxf-dosgi-ri-bundles-spring-dm-parent</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.cxf</groupId>
+      <artifactId>cxf-dosgi-ri-samples-spring-dm-interface</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+  </dependencies> 
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <configuration>
+          <instructions>
+            <Bundle-Name>CXF Distributed OSGi Spring-DM Sample Client Bundle</Bundle-Name>
+            <Bundle-Description>This bundle contains the client-side implementation
of the Distributed OSGi with Spring-DM sample.</Bundle-Description>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Import-Package>org.apache.cxf.dosgi.samples.springdm</Import-Package>

+            <Private-Package>org.apache.cxf.dosgi.samples.springdm.client</Private-Package>

+          </instructions>
+        </configuration>
+      </plugin> 
+    </plugins>
+  </build>    
+</project>

Propchange: cxf/sandbox/dosgi/samples/spring_dm/client/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/sandbox/dosgi/samples/spring_dm/client/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: cxf/sandbox/dosgi/samples/spring_dm/client/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/org/apache/cxf/dosgi/samples/springdm/client/DinnerServiceConsumer.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/org/apache/cxf/dosgi/samples/springdm/client/DinnerServiceConsumer.java?rev=710040&view=auto
==============================================================================
--- cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/org/apache/cxf/dosgi/samples/springdm/client/DinnerServiceConsumer.java
(added)
+++ cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/org/apache/cxf/dosgi/samples/springdm/client/DinnerServiceConsumer.java
Mon Nov  3 04:08:24 2008
@@ -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.cxf.dosgi.samples.springdm.client;
+
+import org.apache.cxf.dosgi.samples.springdm.DinnerService;
+import org.apache.cxf.dosgi.samples.springdm.Restaurant;
+
+public class DinnerServiceConsumer {
+    DinnerService dinnerService;
+    
+    public void setDinnerService(DinnerService ds) {
+        dinnerService = ds;
+    }
+    
+    public void start() {
+        System.out.println("Found the following restaurants:");
+        for (Restaurant r : dinnerService.findRestaurants("nice and not too expensive!"))
{
+            System.out.format("  %s (%s) Rating: %d\n", r.getName(), r.getAddress(), r.getRating());
+        }
+    }
+}

Propchange: cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/org/apache/cxf/dosgi/samples/springdm/client/DinnerServiceConsumer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/sandbox/dosgi/samples/spring_dm/client/src/main/java/org/apache/cxf/dosgi/samples/springdm/client/DinnerServiceConsumer.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/META-INF/spring/client-spring.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/META-INF/spring/client-spring.xml?rev=710040&view=auto
==============================================================================
--- cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/META-INF/spring/client-spring.xml
(added)
+++ cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/META-INF/spring/client-spring.xml
Mon Nov  3 04:08:24 2008
@@ -0,0 +1,31 @@
+<?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.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:osgi="http://www.springframework.org/schema/osgi"
+  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+                      http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
+  <osgi:reference id="dinnerServiceRef" interface="org.apache.cxf.dosgi.samples.springdm.DinnerService"/>
+  
+  <bean class="org.apache.cxf.dosgi.samples.springdm.client.DinnerServiceConsumer"
+        init-method="start">
+    <property name="dinnerService" ref="dinnerServiceRef"/>
+  </bean>
+</beans>

Propchange: cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/META-INF/spring/client-spring.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/META-INF/spring/client-spring.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/META-INF/spring/client-spring.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/OSGI-INF/remote-services/remote-services.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/OSGI-INF/remote-services/remote-services.xml?rev=710040&view=auto
==============================================================================
--- cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/OSGI-INF/remote-services/remote-services.xml
(added)
+++ cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/OSGI-INF/remote-services/remote-services.xml
Mon Nov  3 04:08:24 2008
@@ -0,0 +1,27 @@
+<!--
+  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.
+-->
+<service-descriptions xmlns="http://www.osgi.org/xmlns/sd/v1.0.0">
+  <service-description>
+    <interface name="org.apache.cxf.dosgi.samples.springdm.DinnerService" />
+    <property key="osgi.remote.interfaces">*</property>
+    <property key="osgi.intents">SOAP HTTP</property>
+    <property key="osgi.remote.configuration.type">pojo</property>
+    <property key="osgi.remote.configuration.pojo.address">http://localhost:9000/org/apache/cxf/dosgi/samples/springdm/DinnerService</property>
+  </service-description>
+</service-descriptions>

Propchange: cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/OSGI-INF/remote-services/remote-services.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/OSGI-INF/remote-services/remote-services.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: cxf/sandbox/dosgi/samples/spring_dm/client/src/main/resources/OSGI-INF/remote-services/remote-services.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: cxf/sandbox/dosgi/samples/spring_dm/impl/pom.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/samples/spring_dm/impl/pom.xml?rev=710040&view=auto
==============================================================================
--- cxf/sandbox/dosgi/samples/spring_dm/impl/pom.xml (added)
+++ cxf/sandbox/dosgi/samples/spring_dm/impl/pom.xml Mon Nov  3 04:08:24 2008
@@ -0,0 +1,58 @@
+<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">
+<!--
+  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.
+-->
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.cxf</groupId>
+  <artifactId>cxf-dosgi-ri-samples-spring-dm-impl</artifactId>
+  <packaging>bundle</packaging>
+  <name>Distributed OSGI Spring-DM Sample Implementation Bundle</name>
+  <version>1.0-SNAPSHOT</version>
+
+  <parent>
+    <groupId>org.apache.cxf</groupId>
+    <artifactId>cxf-dosgi-ri-bundles-spring-dm-parent</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.cxf</groupId>
+      <artifactId>cxf-dosgi-ri-samples-spring-dm-interface</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+  </dependencies> 
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <configuration>
+          <instructions>
+            <Bundle-Name>CXF Distributed OSGi Spring-DM Sample Implementation Bundle</Bundle-Name>
+            <Bundle-Description>This bundle contains the server-side implementation
of the Distributed OSGi with Spring-DM sample.</Bundle-Description>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Import-Package>org.apache.cxf.dosgi.samples.springdm</Import-Package>

+            <Private-Package>org.apache.cxf.dosgi.samples.springdm.impl</Private-Package>

+          </instructions>
+        </configuration>
+      </plugin> 
+    </plugins>
+  </build>    
+</project>

Propchange: cxf/sandbox/dosgi/samples/spring_dm/impl/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/sandbox/dosgi/samples/spring_dm/impl/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: cxf/sandbox/dosgi/samples/spring_dm/impl/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/org/apache/cxf/dosgi/samples/springdm/impl/DinnerServiceImpl.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/org/apache/cxf/dosgi/samples/springdm/impl/DinnerServiceImpl.java?rev=710040&view=auto
==============================================================================
--- cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/org/apache/cxf/dosgi/samples/springdm/impl/DinnerServiceImpl.java
(added)
+++ cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/org/apache/cxf/dosgi/samples/springdm/impl/DinnerServiceImpl.java
Mon Nov  3 04:08:24 2008
@@ -0,0 +1,38 @@
+/** 
+  * 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.cxf.dosgi.samples.springdm.impl;
+
+import java.util.Arrays;
+import java.util.List;
+
+import org.apache.cxf.dosgi.samples.springdm.DinnerService;
+import org.apache.cxf.dosgi.samples.springdm.Restaurant;
+
+public class DinnerServiceImpl implements DinnerService{
+    List<Restaurant> restaurants = Arrays.<Restaurant>asList(
+            new Restaurant("Jojo's", "1 food way", 3),
+            new Restaurant("Boohaa's", "95 forage ave", 1),
+            new Restaurant("MicMac", "Plastic Plaza", 1)
+        );
+    
+    public List<Restaurant> findRestaurants(String query) {
+        System.out.println("Hey! Someone's using the Dinner Service! Query: " + query);
+        return restaurants;
+    }
+}

Propchange: cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/org/apache/cxf/dosgi/samples/springdm/impl/DinnerServiceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/java/org/apache/cxf/dosgi/samples/springdm/impl/DinnerServiceImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/resources/META-INF/spring/spring.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/resources/META-INF/spring/spring.xml?rev=710040&view=auto
==============================================================================
--- cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/resources/META-INF/spring/spring.xml
(added)
+++ cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/resources/META-INF/spring/spring.xml
Mon Nov  3 04:08:24 2008
@@ -0,0 +1,32 @@
+<?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.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:osgi="http://www.springframework.org/schema/osgi"
+  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+                      http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
+  <osgi:service interface="org.apache.cxf.dosgi.samples.springdm.DinnerService">
+    <osgi:service-properties>
+      <entry key="osgi.remote.interfaces" value="*" />
+    </osgi:service-properties>
+    
+    <bean class="org.apache.cxf.dosgi.samples.springdm.impl.DinnerServiceImpl" />
+  </osgi:service>                      
+</beans>

Propchange: cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/resources/META-INF/spring/spring.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/resources/META-INF/spring/spring.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: cxf/sandbox/dosgi/samples/spring_dm/impl/src/main/resources/META-INF/spring/spring.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: cxf/sandbox/dosgi/samples/spring_dm/interface/pom.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/samples/spring_dm/interface/pom.xml?rev=710040&view=auto
==============================================================================
--- cxf/sandbox/dosgi/samples/spring_dm/interface/pom.xml (added)
+++ cxf/sandbox/dosgi/samples/spring_dm/interface/pom.xml Mon Nov  3 04:08:24 2008
@@ -0,0 +1,51 @@
+<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">
+  <!--
+  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.
+  -->
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.cxf</groupId>
+  <artifactId>cxf-dosgi-ri-samples-spring-dm-interface</artifactId>
+  <packaging>bundle</packaging>
+  <name>Distributed OSGI Spring-DM Sample Interface Bundle</name>
+  <version>1.0-SNAPSHOT</version>
+
+  <parent>
+    <groupId>org.apache.cxf</groupId>
+    <artifactId>cxf-dosgi-ri-bundles-spring-dm-parent</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <configuration>
+          <instructions>
+            <Bundle-Name>CXF Distributed OSGi Spring-DM Sample Interface Bundle</Bundle-Name>
+            <Bundle-Description>This bundle contains the interfaces of the Distributed
OSGi with Spring-DM sample.</Bundle-Description>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Import-Package></Import-Package>
+            <Export-Package>org.apache.cxf.dosgi.samples.springdm</Export-Package>

+          </instructions>
+        </configuration>
+      </plugin> 
+    </plugins>
+  </build>    
+</project>

Propchange: cxf/sandbox/dosgi/samples/spring_dm/interface/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/sandbox/dosgi/samples/spring_dm/interface/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: cxf/sandbox/dosgi/samples/spring_dm/interface/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/DinnerService.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/DinnerService.java?rev=710040&view=auto
==============================================================================
--- cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/DinnerService.java
(added)
+++ cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/DinnerService.java
Mon Nov  3 04:08:24 2008
@@ -0,0 +1,25 @@
+/** 
+  * 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.cxf.dosgi.samples.springdm;
+
+import java.util.List;
+
+public interface DinnerService {
+    List<Restaurant> findRestaurants(String searchQuery);
+}
\ No newline at end of file

Propchange: cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/DinnerService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/DinnerService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/Restaurant.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/Restaurant.java?rev=710040&view=auto
==============================================================================
--- cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/Restaurant.java
(added)
+++ cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/Restaurant.java
Mon Nov  3 04:08:24 2008
@@ -0,0 +1,58 @@
+/** 
+  * 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.cxf.dosgi.samples.springdm;
+
+public class Restaurant {    
+    private String name;
+    private String address;
+    private int rating;
+
+    public Restaurant() {}
+    
+    public Restaurant(String name, String address, int rating) {
+        this.name = name;
+        this.address = address;
+        this.rating = rating;
+    }
+    
+    public String getAddress() {
+        return address;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public int getRating() {
+        return rating;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public void setAddress(String address) {
+        this.address = address;
+    }
+
+    public void setRating(int rating) {
+        this.rating = rating;
+    }
+}
+

Propchange: cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/Restaurant.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/sandbox/dosgi/samples/spring_dm/interface/src/main/java/org/apache/cxf/dosgi/samples/springdm/Restaurant.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: cxf/sandbox/dosgi/samples/spring_dm/pom.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/dosgi/samples/spring_dm/pom.xml?rev=710040&view=auto
==============================================================================
--- cxf/sandbox/dosgi/samples/spring_dm/pom.xml (added)
+++ cxf/sandbox/dosgi/samples/spring_dm/pom.xml Mon Nov  3 04:08:24 2008
@@ -0,0 +1,42 @@
+<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">
+
+<!--
+  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.
+-->
+
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.cxf</groupId>
+    <artifactId>cxf-dosgi-ri-bundles-spring-dm-parent</artifactId>
+    <packaging>pom</packaging>
+    <name>Distributed OSGI Spring-DM Sample</name>
+    <version>1.0-SNAPSHOT</version>
+
+    <parent>
+      <groupId>org.apache.cxf</groupId>
+      <artifactId>cxf-dosgi-ri-parent</artifactId>
+      <version>1.0-SNAPSHOT</version>
+      <relativePath>../../parent/pom.xml</relativePath>
+    </parent>
+    
+    <modules>    
+      <module>interface</module>
+      <module>impl</module>
+      <module>client</module>
+    </modules> 
+
+</project>

Propchange: cxf/sandbox/dosgi/samples/spring_dm/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/sandbox/dosgi/samples/spring_dm/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: cxf/sandbox/dosgi/samples/spring_dm/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message