diff options
author | fmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-09 19:18:18 +0000 |
---|---|---|
committer | fmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-09 19:18:18 +0000 |
commit | 18ec4c646f3f27aa33eb2be35432ec9f9b416dfc (patch) | |
tree | 3fcfb72c462255eb286f6fc38f3b57d86244348e /sca-java-2.x/contrib/samples/stock-comet-jquery/src/main/java/org/apache/tuscany/sample/comet/StockServiceImpl.java | |
parent | 1728def7aa55ff6a9fdd9b0fd92acb26f64314f1 (diff) |
Removed the projects containing the alternate implementation of the comet binding as it is now the main implementation and has been committed correspondingly. Removed the stock-comet-jquery sample as it is now the main sample for the binding and has been committed correspondingly.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@983781 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/contrib/samples/stock-comet-jquery/src/main/java/org/apache/tuscany/sample/comet/StockServiceImpl.java | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/sca-java-2.x/contrib/samples/stock-comet-jquery/src/main/java/org/apache/tuscany/sample/comet/StockServiceImpl.java b/sca-java-2.x/contrib/samples/stock-comet-jquery/src/main/java/org/apache/tuscany/sample/comet/StockServiceImpl.java deleted file mode 100644 index dc1d4a4c92..0000000000 --- a/sca-java-2.x/contrib/samples/stock-comet-jquery/src/main/java/org/apache/tuscany/sample/comet/StockServiceImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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.tuscany.sample.comet; - -import java.text.DecimalFormat; -import java.util.Date; -import java.util.Random; - -public class StockServiceImpl implements StockService { - - public static final int MAX_VALUE = 1000; - private Random random = new Random(new Date().getTime()); - - @Override - public String getSymbol() { - return "ASF"; - } - - @Override - public Double getValue() { - Double value = Math.abs(random.nextDouble() * random.nextInt(MAX_VALUE)); - return Double.valueOf(new DecimalFormat("#.##").format(value)); - } - -} |