diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-11 23:07:28 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-11 23:07:28 +0000 |
commit | 07b7dfd1a70ba222b899d9813f8c449dbf3b785f (patch) | |
tree | ecfc876747e6cfedee0a8533d87c19ac78a2dbd0 /branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata | |
parent | 6fadbc9cd1fcf03d0b3630f772d91df149b70428 (diff) |
Moving 1.x branches
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835124 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata')
5 files changed, 0 insertions, 249 deletions
diff --git a/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java b/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java deleted file mode 100644 index 02f4d0e7b6..0000000000 --- a/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java +++ /dev/null @@ -1,33 +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 bigbank.accountdata; - -/** - * @version $$Rev$$ $$Date$$ - */ - -public interface AccountDataService { - - public CheckingAccount getCheckingAccount(String customerID); - - public SavingsAccount getSavingsAccount(String customerID); - - public StockAccount getStockAccount(String customerID); - -} diff --git a/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java b/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java deleted file mode 100644 index 2e1290aa5f..0000000000 --- a/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java +++ /dev/null @@ -1,57 +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 bigbank.accountdata; - -import org.osoa.sca.annotations.Service; - -/** - * @version $$Rev$$ $$Date$$ - */ - -@Service(AccountDataService.class) -public class AccountDataServiceImpl implements AccountDataService { - - public CheckingAccount getCheckingAccount(String customerID) { - - CheckingAccount checkingAccount = new CheckingAccount(); - checkingAccount.setAccountNumber("CHA_" + customerID); - checkingAccount.setBalance(500.0f); - - return checkingAccount; - } - - public SavingsAccount getSavingsAccount(String customerID) { - - SavingsAccount savingsAccount = new SavingsAccount(); - savingsAccount.setAccountNumber("SAA_" + customerID); - savingsAccount.setBalance(1500.0f); - - return savingsAccount; - } - - public StockAccount getStockAccount(String customerID) { - - StockAccount stockAccount = new StockAccount(); - stockAccount.setAccountNumber("STA_" + customerID); - stockAccount.setSymbol("IBM"); - stockAccount.setQuantity(100); - - return stockAccount; - } -} diff --git a/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java b/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java deleted file mode 100644 index c53d8b4576..0000000000 --- a/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java +++ /dev/null @@ -1,50 +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 bigbank.accountdata; - -/** - * @version $$Rev$$ $$Date: 2007-04-09 12:03:34 -0700 (Mon, 09 Apr - * 2007) $$ - */ - -public class CheckingAccount { - private String accountNumber; - private double balance; - - public String getAccountNumber() { - return accountNumber; - } - - public void setAccountNumber(String n) { - this.accountNumber = n; - } - - public double getBalance() { - return balance; - } - - public void setBalance(double b) { - this.balance = b; - } - - @Override - public String toString() { - return accountNumber + ", balance:" + balance; - } -} diff --git a/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java b/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java deleted file mode 100644 index f4c7442f30..0000000000 --- a/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java +++ /dev/null @@ -1,50 +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 bigbank.accountdata; - -/** - * @version $$Rev$$ $$Date: 2007-04-09 12:03:34 -0700 (Mon, 09 Apr - * 2007) $$ - */ - -public class SavingsAccount { - private String accountNumber; - private double balance; - - public String getAccountNumber() { - return accountNumber; - } - - public void setAccountNumber(String n) { - this.accountNumber = n; - } - - public double getBalance() { - return balance; - } - - public void setBalance(double b) { - this.balance = b; - } - - @Override - public String toString() { - return accountNumber + ", balance:" + balance; - } -} diff --git a/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java b/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java deleted file mode 100644 index c28e0b59a7..0000000000 --- a/branches/sca-java-1.1/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java +++ /dev/null @@ -1,59 +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 bigbank.accountdata; - -/** - * @version $$Rev$$ $$Date: 2007-04-09 12:03:34 -0700 (Mon, 09 Apr - * 2007) $$ - */ - -public class StockAccount { - private String accountNumber; - private String symbol; - private int quantity; - - public String getAccountNumber() { - return accountNumber; - } - - public void setAccountNumber(String n) { - this.accountNumber = n; - } - - public double getQuantity() { - return quantity; - } - - public void setQuantity(int a) { - this.quantity = a; - } - - public String getSymbol() { - return symbol; - } - - public void setSymbol(String s) { - this.symbol = s; - } - - @Override - public String toString() { - return accountNumber + ", symbol:" + symbol + ", quantity:" + quantity; - } -} |