diff options
author | fmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-14 00:53:45 +0000 |
---|---|---|
committer | fmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-14 00:53:45 +0000 |
commit | f6570c4883b596edb5c4111fad32439b8342c8ee (patch) | |
tree | b077025944a074caab479b74953341296ac421e7 /sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/TemperatureHumidityServiceImpl.java | |
parent | 24bb8d65b5ad54121ce666ee1d805f0f6ec3d713 (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/apache/tuscany/sca/sample/comet/TemperatureHumidityServiceImpl.java')
-rw-r--r-- | sca-java-2.x/contrib/samples/stock-comet/src/main/java/org/apache/tuscany/sca/sample/comet/TemperatureHumidityServiceImpl.java | 26 |
1 files changed, 0 insertions, 26 deletions
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)); - } - -} |