summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org
diff options
context:
space:
mode:
authorfmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68>2010-08-14 00:53:45 +0000
committerfmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68>2010-08-14 00:53:45 +0000
commitf6570c4883b596edb5c4111fad32439b8342c8ee (patch)
treeb077025944a074caab479b74953341296ac421e7 /sca-java-2.x/contrib/samples/stock-comet/src/main/java/org
parent24bb8d65b5ad54121ce666ee1d805f0f6ec3d713 (diff)
Modified sample name to a more general one as it was obsolete due to latest changes.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@985417 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/contrib/samples/stock-comet/src/main/java/org')
-rw-r--r--sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/HumidityService.java10
-rw-r--r--sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/PrecipitationService.java10
-rw-r--r--sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/PrecipitationServiceImpl.java16
-rw-r--r--sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/TemperatureHumidityServiceImpl.java26
-rw-r--r--sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/TemperatureService.java12
5 files changed, 0 insertions, 74 deletions
diff --git a/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/HumidityService.java b/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/HumidityService.java
deleted file mode 100644
index faf80f02e0..0000000000
--- a/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/HumidityService.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.apache.tuscany.sca.sample.comet;
-
-import org.oasisopen.sca.annotation.Remotable;
-
-@Remotable
-public interface HumidityService {
-
- String getHumidity();
-
-}
diff --git a/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/PrecipitationService.java b/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/PrecipitationService.java
deleted file mode 100644
index f40b2eb772..0000000000
--- a/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/PrecipitationService.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.apache.tuscany.sca.sample.comet;
-
-import org.oasisopen.sca.annotation.Remotable;
-
-@Remotable
-public interface PrecipitationService {
-
- String getPrecipitation();
-
-}
diff --git a/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/PrecipitationServiceImpl.java b/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/PrecipitationServiceImpl.java
deleted file mode 100644
index df24a74080..0000000000
--- a/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/PrecipitationServiceImpl.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package org.apache.tuscany.sca.sample.comet;
-
-import java.util.Date;
-import java.util.Random;
-
-import org.oasisopen.sca.annotation.Service;
-
-@Service(PrecipitationService.class)
-public class PrecipitationServiceImpl implements PrecipitationService {
-
- @Override
- public String getPrecipitation() {
- return (new Random(new Date().getTime()).nextInt(100)) + "%";
- }
-
-}
diff --git a/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/TemperatureHumidityServiceImpl.java b/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/TemperatureHumidityServiceImpl.java
deleted file mode 100644
index 1fff4b1dea..0000000000
--- a/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/TemperatureHumidityServiceImpl.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.apache.tuscany.sca.sample.comet;
-
-import java.util.Date;
-import java.util.Random;
-
-import org.oasisopen.sca.annotation.Service;
-
-@Service({TemperatureService.class, HumidityService.class})
-public class TemperatureHumidityServiceImpl implements TemperatureService, HumidityService {
-
- @Override
- public String getHumidity() {
- return (new Random(new Date().getTime()).nextInt(100)) + "%";
- }
-
- @Override
- public String getTemperatureCelsius() {
- return "" + (new Random(new Date().getTime()).nextInt(40));
- }
-
- @Override
- public String getTemperatureFahrenheit() {
- return "" + (new Random(new Date().getTime()).nextInt(200));
- }
-
-}
diff --git a/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/TemperatureService.java b/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/TemperatureService.java
deleted file mode 100644
index 6a9e30b051..0000000000
--- a/sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/TemperatureService.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.apache.tuscany.sca.sample.comet;
-
-import org.oasisopen.sca.annotation.Remotable;
-
-@Remotable
-public interface TemperatureService {
-
- String getTemperatureCelsius();
-
- String getTemperatureFahrenheit();
-
-}