notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2314 - in development/planet/users/niclas/book/atm/simple: . accounts accounts/target accounts/target/build accounts/target/build/main accounts/target/build/main/net accounts/target/build/main/net/dpml accounts/target/build/main/net/dpml/book accounts/target/build/main/net/dpml/book/atm accounts/target/build/main/net/dpml/book/atm/simple accounts/target/build/main/net/dpml/book/atm/simple/accounts accounts/target/classes accounts/target/classes/net accounts/target/classes/net/dpml accounts/target/classes/net/dpml/book accounts/target/classes/net/dpml/book/atm accounts/target/classes/net/dpml/book/atm/simple accounts/target/classes/net/dpml/book/atm/simple/accounts accounts/target/deliverables accounts/target/deliverables/jars accounts/target/test app app/target app/target/build app/target/build/main app/target/build/main/net app/target/build/main/net/dpml app/target/build/main/net/dpml/book app/target/build/main/net/dpml/book/atm app/target/build/main/net/dpml/book/atm/app app/target/classes app/target/classes/net app/target/classes/net/dpml app/target/classes/net/dpml/book app/target/classes/net/dpml/book/atm app/target/classes/net/dpml/book/atm/app app/target/deliverables app/target/deliverables/blocks app/target/deliverables/jars app/target/test authentication authentication/src/main/net/dpml/book/atm/simple/auth authentication/target authentication/target/build authentication/target/build/main authentication/target/build/main/net authentication/target/build/main/net/dpml authentication/target/build/main/net/dpml/book authentication/target/build/main/net/dpml/book/atm authentication/target/build/main/net/dpml/book/atm/simple authentication/target/build/main/net/dpml/book/atm/simple/auth authentication/target/classes authentication/target/classes/net authentication/target/classes/net/dpml authentication/target/classes/net/dpml/book authentication/target/classes/net/dpml/book/atm authentication/target/classes/net/dpml/book/atm/simple authentication/target/classes/net/dpml/book/atm/simple/auth authentication/target/deliverables authentication/target/deliverables/jars authentication/target/test cardreader cardreader/src/main/net/dpml/book/atm/simple/card cardreader/target cardreader/target/build cardreader/target/build/main cardreader/target/build/main/net cardreader/target/build/main/net/dpml cardreader/target/build/main/net/dpml/book cardreader/target/build/main/net/dpml/book/atm cardreader/target/build/main/net/dpml/book/atm/simple cardreader/target/build/main/net/dpml/book/atm/simple/card cardreader/target/classes cardreader/target/classes/net cardreader/target/classes/net/dpml cardreader/target/classes/net/dpml/book cardreader/target/classes/net/dpml/book/atm cardreader/target/classes/net/dpml/book/atm/simple cardreader/target/classes/net/dpml/book/atm/simple/card cardreader/target/deliverables cardreader/target/deliverables/jars cardreader/target/test dispensing dispensing/src/main/net/dpml/book/atm/simple/dispense dispensing/target dispensing/target/build dispensing/target/build/main dispensing/target/build/main/net dispensing/target/build/main/net/dpml dispensing/target/build/main/net/dpml/book dispensing/target/build/main/net/dpml/book/atm dispensing/target/build/main/net/dpml/book/atm/simple dispensing/target/build/main/net/dpml/book/atm/simple/dispense dispensing/target/classes dispensing/target/classes/net dispensing/target/classes/net/dpml dispensing/target/classes/net/dpml/book dispensing/target/classes/net/dpml/book/atm dispensing/target/classes/net/dpml/book/atm/simple dispensing/target/classes/net/dpml/book/atm/simple/dispense dispensing/target/deliverables dispensing/target/deliverables/jars dispensing/target/test userinterface userinterface/src/main/net/dpml/book/atm/simple/ui userinterface/target userinterface/target/build userinterface/target/build/main userinterface/target/build/main/net userinterface/target/build/main/net/dpml userinterface/target/build/main/net/dpml/book userinterface/target/build/main/net/dpml/book/atm userinterface/target/build/main/net/dpml/book/atm/simple userinterface/target/build/main/net/dpml/book/atm/simple/ui userinterface/target/classes userinterface/target/classes/net userinterface/target/classes/net/dpml userinterface/target/classes/net/dpml/book userinterface/target/classes/net/dpml/book/atm userinterface/target/classes/net/dpml/book/atm/simple userinterface/target/classes/net/dpml/book/atm/simple/ui userinterface/target/deliverables userinterface/target/deliverables/jars userinterface/target/test
- From: niclas AT hedhman.org
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2314 - in development/planet/users/niclas/book/atm/simple: . accounts accounts/target accounts/target/build accounts/target/build/main accounts/target/build/main/net accounts/target/build/main/net/dpml accounts/target/build/main/net/dpml/book accounts/target/build/main/net/dpml/book/atm accounts/target/build/main/net/dpml/book/atm/simple accounts/target/build/main/net/dpml/book/atm/simple/accounts accounts/target/classes accounts/target/classes/net accounts/target/classes/net/dpml accounts/target/classes/net/dpml/book accounts/target/classes/net/dpml/book/atm accounts/target/classes/net/dpml/book/atm/simple accounts/target/classes/net/dpml/book/atm/simple/accounts accounts/target/deliverables accounts/target/deliverables/jars accounts/target/test app app/target app/target/build app/target/build/main app/target/build/main/net app/target/build/main/net/dpml app/target/build/main/net/dpml/book app/target/build/main/net/dpml/book/atm app/target/build/main/net/dpml/book/atm/app app/target/classes app/target/classes/net app/target/classes/net/dpml app/target/classes/net/dpml/book app/target/classes/net/dpml/book/atm app/target/classes/net/dpml/book/atm/app app/target/deliverables app/target/deliverables/blocks app/target/deliverables/jars app/target/test authentication authentication/src/main/net/dpml/book/atm/simple/auth authentication/target authentication/target/build authentication/target/build/main authentication/target/build/main/net authentication/target/build/main/net/dpml authentication/target/build/main/net/dpml/book authentication/target/build/main/net/dpml/book/atm authentication/target/build/main/net/dpml/book/atm/simple authentication/target/build/main/net/dpml/book/atm/simple/auth authentication/target/classes authentication/target/classes/net authentication/target/classes/net/dpml authentication/target/classes/net/dpml/book authentication/target/classes/net/dpml/book/atm authentication/target/classes/net/dpml/book/atm/simple authentication/target/classes/net/dpml/book/atm/simple/auth authentication/target/deliverables authentication/target/deliverables/jars authentication/target/test cardreader cardreader/src/main/net/dpml/book/atm/simple/card cardreader/target cardreader/target/build cardreader/target/build/main cardreader/target/build/main/net cardreader/target/build/main/net/dpml cardreader/target/build/main/net/dpml/book cardreader/target/build/main/net/dpml/book/atm cardreader/target/build/main/net/dpml/book/atm/simple cardreader/target/build/main/net/dpml/book/atm/simple/card cardreader/target/classes cardreader/target/classes/net cardreader/target/classes/net/dpml cardreader/target/classes/net/dpml/book cardreader/target/classes/net/dpml/book/atm cardreader/target/classes/net/dpml/book/atm/simple cardreader/target/classes/net/dpml/book/atm/simple/card cardreader/target/deliverables cardreader/target/deliverables/jars cardreader/target/test dispensing dispensing/src/main/net/dpml/book/atm/simple/dispense dispensing/target dispensing/target/build dispensing/target/build/main dispensing/target/build/main/net dispensing/target/build/main/net/dpml dispensing/target/build/main/net/dpml/book dispensing/target/build/main/net/dpml/book/atm dispensing/target/build/main/net/dpml/book/atm/simple dispensing/target/build/main/net/dpml/book/atm/simple/dispense dispensing/target/classes dispensing/target/classes/net dispensing/target/classes/net/dpml dispensing/target/classes/net/dpml/book dispensing/target/classes/net/dpml/book/atm dispensing/target/classes/net/dpml/book/atm/simple dispensing/target/classes/net/dpml/book/atm/simple/dispense dispensing/target/deliverables dispensing/target/deliverables/jars dispensing/target/test userinterface userinterface/src/main/net/dpml/book/atm/simple/ui userinterface/target userinterface/target/build userinterface/target/build/main userinterface/target/build/main/net userinterface/target/build/main/net/dpml userinterface/target/build/main/net/dpml/book userinterface/target/build/main/net/dpml/book/atm userinterface/target/build/main/net/dpml/book/atm/simple userinterface/target/build/main/net/dpml/book/atm/simple/ui userinterface/target/classes userinterface/target/classes/net userinterface/target/classes/net/dpml userinterface/target/classes/net/dpml/book userinterface/target/classes/net/dpml/book/atm userinterface/target/classes/net/dpml/book/atm/simple userinterface/target/classes/net/dpml/book/atm/simple/ui userinterface/target/deliverables userinterface/target/deliverables/jars userinterface/target/test
- Date: Mon, 18 Apr 2005 18:29:38 -0400
Author: niclas AT hedhman.org
Date: Mon Apr 18 18:29:36 2005
New Revision: 2314
Added:
development/planet/users/niclas/book/atm/simple/accounts/build.xml
development/planet/users/niclas/book/atm/simple/accounts/target/
development/planet/users/niclas/book/atm/simple/accounts/target/build/
development/planet/users/niclas/book/atm/simple/accounts/target/build/main/
development/planet/users/niclas/book/atm/simple/accounts/target/build/main/net/
development/planet/users/niclas/book/atm/simple/accounts/target/build/main/net/dpml/
development/planet/users/niclas/book/atm/simple/accounts/target/build/main/net/dpml/book/
development/planet/users/niclas/book/atm/simple/accounts/target/build/main/net/dpml/book/atm/
development/planet/users/niclas/book/atm/simple/accounts/target/build/main/net/dpml/book/atm/simple/
development/planet/users/niclas/book/atm/simple/accounts/target/build/main/net/dpml/book/atm/simple/accounts/
development/planet/users/niclas/book/atm/simple/accounts/target/build/main/net/dpml/book/atm/simple/accounts/SimpleAccountManager.java
development/planet/users/niclas/book/atm/simple/accounts/target/classes/
development/planet/users/niclas/book/atm/simple/accounts/target/classes/net/
development/planet/users/niclas/book/atm/simple/accounts/target/classes/net/dpml/
development/planet/users/niclas/book/atm/simple/accounts/target/classes/net/dpml/book/
development/planet/users/niclas/book/atm/simple/accounts/target/classes/net/dpml/book/atm/
development/planet/users/niclas/book/atm/simple/accounts/target/classes/net/dpml/book/atm/simple/
development/planet/users/niclas/book/atm/simple/accounts/target/classes/net/dpml/book/atm/simple/accounts/
development/planet/users/niclas/book/atm/simple/accounts/target/classes/net/dpml/book/atm/simple/accounts/SimpleAccountManager.class
(contents, props changed)
development/planet/users/niclas/book/atm/simple/accounts/target/classes/net/dpml/book/atm/simple/accounts/SimpleAccountManager.xinfo
development/planet/users/niclas/book/atm/simple/accounts/target/deliverables/
development/planet/users/niclas/book/atm/simple/accounts/target/deliverables/jars/
development/planet/users/niclas/book/atm/simple/accounts/target/deliverables/jars/dpml-book-atm-simple-accounts.jar
(contents, props changed)
development/planet/users/niclas/book/atm/simple/accounts/target/deliverables/jars/dpml-book-atm-simple-accounts.jar.md5
development/planet/users/niclas/book/atm/simple/accounts/target/test/
development/planet/users/niclas/book/atm/simple/app/build.xml
development/planet/users/niclas/book/atm/simple/app/target/
development/planet/users/niclas/book/atm/simple/app/target/build/
development/planet/users/niclas/book/atm/simple/app/target/build/main/
development/planet/users/niclas/book/atm/simple/app/target/build/main/net/
development/planet/users/niclas/book/atm/simple/app/target/build/main/net/dpml/
development/planet/users/niclas/book/atm/simple/app/target/build/main/net/dpml/book/
development/planet/users/niclas/book/atm/simple/app/target/build/main/net/dpml/book/atm/
development/planet/users/niclas/book/atm/simple/app/target/build/main/net/dpml/book/atm/app/
development/planet/users/niclas/book/atm/simple/app/target/build/main/net/dpml/book/atm/app/ATM.java
development/planet/users/niclas/book/atm/simple/app/target/classes/
development/planet/users/niclas/book/atm/simple/app/target/classes/net/
development/planet/users/niclas/book/atm/simple/app/target/classes/net/dpml/
development/planet/users/niclas/book/atm/simple/app/target/classes/net/dpml/book/
development/planet/users/niclas/book/atm/simple/app/target/classes/net/dpml/book/atm/
development/planet/users/niclas/book/atm/simple/app/target/classes/net/dpml/book/atm/app/
development/planet/users/niclas/book/atm/simple/app/target/classes/net/dpml/book/atm/app/ATM.class
(contents, props changed)
development/planet/users/niclas/book/atm/simple/app/target/deliverables/
development/planet/users/niclas/book/atm/simple/app/target/deliverables/blocks/
development/planet/users/niclas/book/atm/simple/app/target/deliverables/blocks/dpml-book-atm-simple-app.block
development/planet/users/niclas/book/atm/simple/app/target/deliverables/blocks/dpml-book-atm-simple-app.block.md5
development/planet/users/niclas/book/atm/simple/app/target/deliverables/jars/
development/planet/users/niclas/book/atm/simple/app/target/deliverables/jars/dpml-book-atm-simple-app.jar
(contents, props changed)
development/planet/users/niclas/book/atm/simple/app/target/deliverables/jars/dpml-book-atm-simple-app.jar.md5
development/planet/users/niclas/book/atm/simple/app/target/test/
development/planet/users/niclas/book/atm/simple/authentication/build.xml
development/planet/users/niclas/book/atm/simple/authentication/target/
development/planet/users/niclas/book/atm/simple/authentication/target/build/
development/planet/users/niclas/book/atm/simple/authentication/target/build/main/
development/planet/users/niclas/book/atm/simple/authentication/target/build/main/net/
development/planet/users/niclas/book/atm/simple/authentication/target/build/main/net/dpml/
development/planet/users/niclas/book/atm/simple/authentication/target/build/main/net/dpml/book/
development/planet/users/niclas/book/atm/simple/authentication/target/build/main/net/dpml/book/atm/
development/planet/users/niclas/book/atm/simple/authentication/target/build/main/net/dpml/book/atm/simple/
development/planet/users/niclas/book/atm/simple/authentication/target/build/main/net/dpml/book/atm/simple/auth/
development/planet/users/niclas/book/atm/simple/authentication/target/build/main/net/dpml/book/atm/simple/auth/SimpleAuthentication.java
development/planet/users/niclas/book/atm/simple/authentication/target/classes/
development/planet/users/niclas/book/atm/simple/authentication/target/classes/net/
development/planet/users/niclas/book/atm/simple/authentication/target/classes/net/dpml/
development/planet/users/niclas/book/atm/simple/authentication/target/classes/net/dpml/book/
development/planet/users/niclas/book/atm/simple/authentication/target/classes/net/dpml/book/atm/
development/planet/users/niclas/book/atm/simple/authentication/target/classes/net/dpml/book/atm/simple/
development/planet/users/niclas/book/atm/simple/authentication/target/classes/net/dpml/book/atm/simple/auth/
development/planet/users/niclas/book/atm/simple/authentication/target/classes/net/dpml/book/atm/simple/auth/SimpleAuthentication.class
(contents, props changed)
development/planet/users/niclas/book/atm/simple/authentication/target/deliverables/
development/planet/users/niclas/book/atm/simple/authentication/target/deliverables/jars/
development/planet/users/niclas/book/atm/simple/authentication/target/deliverables/jars/dpml-book-atm-simple-authentication.jar
(contents, props changed)
development/planet/users/niclas/book/atm/simple/authentication/target/deliverables/jars/dpml-book-atm-simple-authentication.jar.md5
development/planet/users/niclas/book/atm/simple/authentication/target/test/
development/planet/users/niclas/book/atm/simple/build.xml
development/planet/users/niclas/book/atm/simple/cardreader/build.xml
development/planet/users/niclas/book/atm/simple/cardreader/target/
development/planet/users/niclas/book/atm/simple/cardreader/target/build/
development/planet/users/niclas/book/atm/simple/cardreader/target/build/main/
development/planet/users/niclas/book/atm/simple/cardreader/target/build/main/net/
development/planet/users/niclas/book/atm/simple/cardreader/target/build/main/net/dpml/
development/planet/users/niclas/book/atm/simple/cardreader/target/build/main/net/dpml/book/
development/planet/users/niclas/book/atm/simple/cardreader/target/build/main/net/dpml/book/atm/
development/planet/users/niclas/book/atm/simple/cardreader/target/build/main/net/dpml/book/atm/simple/
development/planet/users/niclas/book/atm/simple/cardreader/target/build/main/net/dpml/book/atm/simple/card/
development/planet/users/niclas/book/atm/simple/cardreader/target/build/main/net/dpml/book/atm/simple/card/SimpleCardReader.java
development/planet/users/niclas/book/atm/simple/cardreader/target/classes/
development/planet/users/niclas/book/atm/simple/cardreader/target/classes/net/
development/planet/users/niclas/book/atm/simple/cardreader/target/classes/net/dpml/
development/planet/users/niclas/book/atm/simple/cardreader/target/classes/net/dpml/book/
development/planet/users/niclas/book/atm/simple/cardreader/target/classes/net/dpml/book/atm/
development/planet/users/niclas/book/atm/simple/cardreader/target/classes/net/dpml/book/atm/simple/
development/planet/users/niclas/book/atm/simple/cardreader/target/classes/net/dpml/book/atm/simple/card/
development/planet/users/niclas/book/atm/simple/cardreader/target/classes/net/dpml/book/atm/simple/card/SimpleCardReader.class
(contents, props changed)
development/planet/users/niclas/book/atm/simple/cardreader/target/deliverables/
development/planet/users/niclas/book/atm/simple/cardreader/target/deliverables/jars/
development/planet/users/niclas/book/atm/simple/cardreader/target/deliverables/jars/dpml-book-atm-simple-cardreader.jar
(contents, props changed)
development/planet/users/niclas/book/atm/simple/cardreader/target/deliverables/jars/dpml-book-atm-simple-cardreader.jar.md5
development/planet/users/niclas/book/atm/simple/cardreader/target/test/
development/planet/users/niclas/book/atm/simple/dispensing/build.xml
development/planet/users/niclas/book/atm/simple/dispensing/target/
development/planet/users/niclas/book/atm/simple/dispensing/target/build/
development/planet/users/niclas/book/atm/simple/dispensing/target/build/main/
development/planet/users/niclas/book/atm/simple/dispensing/target/build/main/net/
development/planet/users/niclas/book/atm/simple/dispensing/target/build/main/net/dpml/
development/planet/users/niclas/book/atm/simple/dispensing/target/build/main/net/dpml/book/
development/planet/users/niclas/book/atm/simple/dispensing/target/build/main/net/dpml/book/atm/
development/planet/users/niclas/book/atm/simple/dispensing/target/build/main/net/dpml/book/atm/simple/
development/planet/users/niclas/book/atm/simple/dispensing/target/build/main/net/dpml/book/atm/simple/dispense/
development/planet/users/niclas/book/atm/simple/dispensing/target/build/main/net/dpml/book/atm/simple/dispense/SimpleDispense.java
development/planet/users/niclas/book/atm/simple/dispensing/target/classes/
development/planet/users/niclas/book/atm/simple/dispensing/target/classes/net/
development/planet/users/niclas/book/atm/simple/dispensing/target/classes/net/dpml/
development/planet/users/niclas/book/atm/simple/dispensing/target/classes/net/dpml/book/
development/planet/users/niclas/book/atm/simple/dispensing/target/classes/net/dpml/book/atm/
development/planet/users/niclas/book/atm/simple/dispensing/target/classes/net/dpml/book/atm/simple/
development/planet/users/niclas/book/atm/simple/dispensing/target/classes/net/dpml/book/atm/simple/dispense/
development/planet/users/niclas/book/atm/simple/dispensing/target/classes/net/dpml/book/atm/simple/dispense/SimpleDispense.class
(contents, props changed)
development/planet/users/niclas/book/atm/simple/dispensing/target/deliverables/
development/planet/users/niclas/book/atm/simple/dispensing/target/deliverables/jars/
development/planet/users/niclas/book/atm/simple/dispensing/target/deliverables/jars/dpml-book-atm-simple-dispensing.jar
(contents, props changed)
development/planet/users/niclas/book/atm/simple/dispensing/target/deliverables/jars/dpml-book-atm-simple-dispensing.jar.md5
development/planet/users/niclas/book/atm/simple/dispensing/target/test/
development/planet/users/niclas/book/atm/simple/userinterface/build.xml
development/planet/users/niclas/book/atm/simple/userinterface/target/
development/planet/users/niclas/book/atm/simple/userinterface/target/build/
development/planet/users/niclas/book/atm/simple/userinterface/target/build/main/
development/planet/users/niclas/book/atm/simple/userinterface/target/build/main/net/
development/planet/users/niclas/book/atm/simple/userinterface/target/build/main/net/dpml/
development/planet/users/niclas/book/atm/simple/userinterface/target/build/main/net/dpml/book/
development/planet/users/niclas/book/atm/simple/userinterface/target/build/main/net/dpml/book/atm/
development/planet/users/niclas/book/atm/simple/userinterface/target/build/main/net/dpml/book/atm/simple/
development/planet/users/niclas/book/atm/simple/userinterface/target/build/main/net/dpml/book/atm/simple/ui/
development/planet/users/niclas/book/atm/simple/userinterface/target/build/main/net/dpml/book/atm/simple/ui/ConsoleUi.java
development/planet/users/niclas/book/atm/simple/userinterface/target/classes/
development/planet/users/niclas/book/atm/simple/userinterface/target/classes/net/
development/planet/users/niclas/book/atm/simple/userinterface/target/classes/net/dpml/
development/planet/users/niclas/book/atm/simple/userinterface/target/classes/net/dpml/book/
development/planet/users/niclas/book/atm/simple/userinterface/target/classes/net/dpml/book/atm/
development/planet/users/niclas/book/atm/simple/userinterface/target/classes/net/dpml/book/atm/simple/
development/planet/users/niclas/book/atm/simple/userinterface/target/classes/net/dpml/book/atm/simple/ui/
development/planet/users/niclas/book/atm/simple/userinterface/target/classes/net/dpml/book/atm/simple/ui/ConsoleUi.class
(contents, props changed)
development/planet/users/niclas/book/atm/simple/userinterface/target/deliverables/
development/planet/users/niclas/book/atm/simple/userinterface/target/deliverables/jars/
development/planet/users/niclas/book/atm/simple/userinterface/target/deliverables/jars/dpml-book-atm-simple-ui.jar
(contents, props changed)
development/planet/users/niclas/book/atm/simple/userinterface/target/deliverables/jars/dpml-book-atm-simple-ui.jar.md5
development/planet/users/niclas/book/atm/simple/userinterface/target/test/
Modified:
development/planet/users/niclas/book/atm/simple/authentication/src/main/net/dpml/book/atm/simple/auth/SimpleAuthentication.java
development/planet/users/niclas/book/atm/simple/cardreader/src/main/net/dpml/book/atm/simple/card/SimpleCardReader.java
development/planet/users/niclas/book/atm/simple/dispensing/src/main/net/dpml/book/atm/simple/dispense/SimpleDispense.java
development/planet/users/niclas/book/atm/simple/userinterface/src/main/net/dpml/book/atm/simple/ui/ConsoleUi.java
Log:
Added: development/planet/users/niclas/book/atm/simple/accounts/build.xml
==============================================================================
--- (empty file)
+++ development/planet/users/niclas/book/atm/simple/accounts/build.xml Mon
Apr 18 18:29:36 2005
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Copyright 2005 Niclas Hedhman
+
+ Licensed 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.
+-->
+
+<project name="dpml-book-atm-simple-accounts" default="install" basedir="."
+ xmlns:transit="antlib:net.dpml.transit"
xmlns:x="plugin:dpml/magic/dpml-magic-core"
+>
+
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
+
+</project>
Added:
development/planet/users/niclas/book/atm/simple/accounts/target/build/main/net/dpml/book/atm/simple/accounts/SimpleAccountManager.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/accounts/target/build/main/net/dpml/book/atm/simple/accounts/SimpleAccountManager.java
Mon Apr 18 18:29:36 2005
@@ -0,0 +1,122 @@
+/*
+ * Copyright 2005 Niclas Hedhman
+ * Licensed 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 net.dpml.book.atm.simple.accounts;
+
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.Properties;
+
+import net.dpml.book.atm.BackEndProvider;
+import net.dpml.book.atm.WithdrawalException;
+
+import net.dpml.parameters.ParameterException;
+import net.dpml.parameters.Parameters;
+
+/** This simple BackEndProvider implementation uses java.util.Properties
+ * files to emulate a backend banking host.
+ *
+ * @author <a href="mailto:niclas AT hedhman.org";>Niclas Hedhman</a>
+ * @metro.component name="simple-accountmanager" lifestyle="singleton"
+ * @metro.service type="net.dpml.book.atm.BackEndProvider"
+ */
+public class SimpleAccountManager
+ implements BackEndProvider
+{
+ private String m_accountsFilename;
+ private Properties m_accounts;
+ private Properties m_pins;
+
+ public SimpleAccountManager( Parameters params )
+ throws ParameterException, IOException
+ {
+ m_accountsFilename = params.getParameter( "accounts-filename" );
+ String pinsFilename = params.getParameter( "pinnumbers-filename" );
+
+ m_accounts = loadProperties( m_accountsFilename );
+ m_pins = loadProperties( pinsFilename );
+ }
+
+ public boolean requestWithdrawal( String account, String pin, String
amount )
+ {
+ if( validate( account, pin ) == false )
+ return false;
+ return haveEnough( account, amount );
+ }
+
+ public void withdraw( String account, String amount )
+ throws WithdrawalException
+ {
+ synchronized( this )
+ {
+ if( haveEnough( account, amount ) == false )
+ throw new WithdrawalException( "Not enough credit for the
account to make withdrawal of " + amount );
+ BigDecimal balance = getBalance( account );
+ BigDecimal withdrawn = convert( amount );
+ BigDecimal newBalance = balance.subtract( withdrawn );
+ m_accounts.setProperty( account, newBalance.toString() );
+ try
+ {
+ saveAccounts();
+ } catch( IOException e )
+ {
+ throw new WithdrawalException( "Withdrawal failed due to
IOException." );
+ }
+ }
+ }
+
+ private boolean validate( String account, String pin )
+ {
+ String correct = m_pins.getProperty( account );
+ return pin.equals( correct );
+ }
+
+ private boolean haveEnough( String account, String amount )
+ {
+ BigDecimal balance = getBalance( account );
+ BigDecimal askingFor = convert( amount );
+ return balance.subtract( askingFor ).floatValue() > 0 ;
+ }
+
+ private BigDecimal getBalance( String account )
+ {
+ String amount = m_accounts.getProperty( account );
+ return convert( amount );
+ }
+
+ private BigDecimal convert( String amount )
+ {
+ return new BigDecimal( amount );
+ }
+
+ private Properties loadProperties( String filename )
+ throws IOException
+ {
+ FileInputStream in = new FileInputStream( filename );
+ Properties props = new Properties();
+ props.load( in );
+ return props;
+ }
+
+ private void saveAccounts()
+ throws IOException
+ {
+ FileOutputStream out = new FileOutputStream( m_accountsFilename );
+ m_accounts.store( out, "Account = amount " );
+ }
+}
Added:
development/planet/users/niclas/book/atm/simple/accounts/target/classes/net/dpml/book/atm/simple/accounts/SimpleAccountManager.class
==============================================================================
Binary file. No diff available.
Added:
development/planet/users/niclas/book/atm/simple/accounts/target/classes/net/dpml/book/atm/simple/accounts/SimpleAccountManager.xinfo
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/accounts/target/classes/net/dpml/book/atm/simple/accounts/SimpleAccountManager.xinfo
Mon Apr 18 18:29:36 2005
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE type PUBLIC "-//DPML/Metro/Type DTD Version 1.0//EN"
"http://repository.dpml.net/classic/dpml/metro/dtds/type_1_0.dtd" >
+
+<type>
+ <info native="true" threadsafe="false">
+ <name>simple-accountmanager</name>
+ <version>1.0.0</version>
+ <lifestyle>singleton</lifestyle>
+ <collection>hard</collection>
+ </info>
+ <context/>
+ <services>
+ <service type="net.dpml.book.atm.BackEndProvider"/>
+ </services>
+</type>
\ No newline at end of file
Added:
development/planet/users/niclas/book/atm/simple/accounts/target/deliverables/jars/dpml-book-atm-simple-accounts.jar
==============================================================================
Binary file. No diff available.
Added:
development/planet/users/niclas/book/atm/simple/accounts/target/deliverables/jars/dpml-book-atm-simple-accounts.jar.md5
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/accounts/target/deliverables/jars/dpml-book-atm-simple-accounts.jar.md5
Mon Apr 18 18:29:36 2005
@@ -0,0 +1 @@
+30896ea4302c6a3803f11da793b1995b
\ No newline at end of file
Added: development/planet/users/niclas/book/atm/simple/app/build.xml
==============================================================================
--- (empty file)
+++ development/planet/users/niclas/book/atm/simple/app/build.xml Mon
Apr 18 18:29:36 2005
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Copyright 2005 Niclas Hedhman
+
+ Licensed 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.
+-->
+
+<project name="dpml-book-atm-simple-app" default="install" basedir="."
+ xmlns:transit="antlib:net.dpml.transit"
xmlns:x="plugin:dpml/magic/dpml-magic-core"
+>
+
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
+
+ <target name="build" depends="standard.build" >
+ <x:block name="atm" >
+ <x:component name="accounts"
class="net.dpml.book.atm.simple.accounts.SimpleAccountManager" />
+ <x:component name="authentication"
class="net.dpml.book.atm.simple.auth.SimpleAuthentication" />
+ <x:component name="dispensing"
class="net.dpml.book.atm.simple.dispense.SimpleDispense" />
+ <x:component name="cardreader"
class="net.dpml.book.atm.simple.card.SimpleCardReader" />
+ <x:component name="userinterface"
class="net.dpml.book.atm.simple.ui.ConsoleUi" />
+ </x:block>
+ </target>
+</project>
Added:
development/planet/users/niclas/book/atm/simple/app/target/build/main/net/dpml/book/atm/app/ATM.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/app/target/build/main/net/dpml/book/atm/app/ATM.java
Mon Apr 18 18:29:36 2005
@@ -0,0 +1,5 @@
+package net.dpml.book.atm.app;
+
+public class ATM
+{
+}
Added:
development/planet/users/niclas/book/atm/simple/app/target/classes/net/dpml/book/atm/app/ATM.class
==============================================================================
Binary file. No diff available.
Added:
development/planet/users/niclas/book/atm/simple/app/target/deliverables/blocks/dpml-book-atm-simple-app.block
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/app/target/deliverables/blocks/dpml-book-atm-simple-app.block
Mon Apr 18 18:29:36 2005
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<container name="atm">
+
+ <classloader>
+ <classpath>
+ <artifact>jar:dpml/book/atm/api/dpml-book-atm-api</artifact>
+ <artifact>jar:dpml/metro/public/dpml-parameters-api#SNAPSHOT</artifact>
+ <artifact>jar:dpml/metro/public/dpml-service-api#SNAPSHOT</artifact>
+
<artifact>jar:dpml/book/atm/simple/app/dpml-book-atm-simple-app</artifact>
+ </classpath>
+ </classloader>
+
+ <component name="accounts"
class="net.dpml.book.atm.simple.accounts.SimpleAccountManager"/>
+
+ <component name="authentication"
class="net.dpml.book.atm.simple.auth.SimpleAuthentication"/>
+
+ <component name="dispensing"
class="net.dpml.book.atm.simple.dispense.SimpleDispense"/>
+
+ <component name="cardreader"
class="net.dpml.book.atm.simple.card.SimpleCardReader"/>
+
+ <component name="userinterface"
class="net.dpml.book.atm.simple.ui.ConsoleUi"/>
+
+</container>
Added:
development/planet/users/niclas/book/atm/simple/app/target/deliverables/blocks/dpml-book-atm-simple-app.block.md5
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/app/target/deliverables/blocks/dpml-book-atm-simple-app.block.md5
Mon Apr 18 18:29:36 2005
@@ -0,0 +1 @@
+b3f821219c6b5adc752ab3910e80565f
\ No newline at end of file
Added:
development/planet/users/niclas/book/atm/simple/app/target/deliverables/jars/dpml-book-atm-simple-app.jar
==============================================================================
Binary file. No diff available.
Added:
development/planet/users/niclas/book/atm/simple/app/target/deliverables/jars/dpml-book-atm-simple-app.jar.md5
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/app/target/deliverables/jars/dpml-book-atm-simple-app.jar.md5
Mon Apr 18 18:29:36 2005
@@ -0,0 +1 @@
+272f507237bafd579298a038ddd805f6
\ No newline at end of file
Added:
development/planet/users/niclas/book/atm/simple/authentication/build.xml
==============================================================================
--- (empty file)
+++ development/planet/users/niclas/book/atm/simple/authentication/build.xml
Mon Apr 18 18:29:36 2005
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Copyright 2005 Niclas Hedhman
+
+ Licensed 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.
+-->
+
+<project name="dpml-book-atm-simple-authentication" default="install"
basedir="."
+ xmlns:transit="antlib:net.dpml.transit"
xmlns:x="plugin:dpml/magic/dpml-magic-core"
+>
+
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
+
+</project>
Modified:
development/planet/users/niclas/book/atm/simple/authentication/src/main/net/dpml/book/atm/simple/auth/SimpleAuthentication.java
==============================================================================
---
development/planet/users/niclas/book/atm/simple/authentication/src/main/net/dpml/book/atm/simple/auth/SimpleAuthentication.java
(original)
+++
development/planet/users/niclas/book/atm/simple/authentication/src/main/net/dpml/book/atm/simple/auth/SimpleAuthentication.java
Mon Apr 18 18:29:36 2005
@@ -1,9 +1,42 @@
package net.dpml.book.atm.simple.auth;
import net.dpml.book.atm.Authentication;
+import net.dpml.book.atm.UserInterface;
+import net.dpml.service.ServiceException;
+import net.dpml.service.ServiceManager;
+/**
+ *
+ * @author <a href="mailto:niclas AT hedhman.org";>Niclas Hedhman</a>
+ * @metro.component name="simple-authentication" lifestyle="singleton"
+ * @metro.service type="net.dpml.book.atm.Authentication"
+ */
public class SimpleAuthentication
implements Authentication
{
+ private UserInterface m_ui;
+
+ /**
+ *
+ * @param man ServiceManager provided by Metro
+ *
+ * @metro.dependency type="net.dpml.book.atm.UserInterface"
+ * key="userinterface"
+ */
+ public SimpleAuthentication( ServiceManager man )
+ throws ServiceException
+ {
+ m_ui = (UserInterface) man.lookup( "userinterface" );
+ }
+
+
+ /**
+ * @see net.dpml.book.atm.Authentication#getPinNumber()
+ */
+ public String getPinNumber()
+ {
+ String card = m_ui.acquireUserInput( "PIN", null );
+ return card;
+ }
}
\ No newline at end of file
Added:
development/planet/users/niclas/book/atm/simple/authentication/target/build/main/net/dpml/book/atm/simple/auth/SimpleAuthentication.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/authentication/target/build/main/net/dpml/book/atm/simple/auth/SimpleAuthentication.java
Mon Apr 18 18:29:36 2005
@@ -0,0 +1,36 @@
+package net.dpml.book.atm.simple.auth;
+
+import net.dpml.book.atm.Authentication;
+import net.dpml.book.atm.UserInterface;
+import net.dpml.service.ServiceException;
+import net.dpml.service.ServiceManager;
+
+public class SimpleAuthentication
+ implements Authentication
+{
+ private UserInterface m_ui;
+
+ /**
+ *
+ * @param man ServiceManager provided by Metro
+ *
+ * @metro.dependency type="net.dpml.book.atm.UserInterface"
+ * key="userinterface"
+ */
+ public SimpleAuthentication( ServiceManager man )
+ throws ServiceException
+ {
+ m_ui = (UserInterface) man.lookup( "userinterface" );
+ }
+
+
+ /**
+ * @see net.dpml.book.atm.Authentication#getPinNumber()
+ */
+ public String getPinNumber()
+ {
+ String card = m_ui.acquireUserInput( "PIN", null );
+ return card;
+ }
+
+}
\ No newline at end of file
Added:
development/planet/users/niclas/book/atm/simple/authentication/target/classes/net/dpml/book/atm/simple/auth/SimpleAuthentication.class
==============================================================================
Binary file. No diff available.
Added:
development/planet/users/niclas/book/atm/simple/authentication/target/deliverables/jars/dpml-book-atm-simple-authentication.jar
==============================================================================
Binary file. No diff available.
Added:
development/planet/users/niclas/book/atm/simple/authentication/target/deliverables/jars/dpml-book-atm-simple-authentication.jar.md5
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/authentication/target/deliverables/jars/dpml-book-atm-simple-authentication.jar.md5
Mon Apr 18 18:29:36 2005
@@ -0,0 +1 @@
+f91a227d12838897cef781f11fa69d4f
\ No newline at end of file
Added: development/planet/users/niclas/book/atm/simple/build.xml
==============================================================================
--- (empty file)
+++ development/planet/users/niclas/book/atm/simple/build.xml Mon Apr 18
18:29:36 2005
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Copyright 2004 Niclas Hedhman
+
+ Licensed 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.
+-->
+
+<project name="dpml-book-atm-simple" default="default" basedir="."
+ xmlns:transit="antlib:net.dpml.transit">
+
+ <transit:import uri="artifact:template:dpml/magic/reactor"/>
+
+</project>
Added: development/planet/users/niclas/book/atm/simple/cardreader/build.xml
==============================================================================
--- (empty file)
+++ development/planet/users/niclas/book/atm/simple/cardreader/build.xml
Mon Apr 18 18:29:36 2005
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Copyright 2005 Niclas Hedhman
+
+ Licensed 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.
+-->
+
+<project name="dpml-book-atm-simple-cardreader" default="install" basedir="."
+ xmlns:transit="antlib:net.dpml.transit"
xmlns:x="plugin:dpml/magic/dpml-magic-core"
+>
+
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
+
+</project>
Modified:
development/planet/users/niclas/book/atm/simple/cardreader/src/main/net/dpml/book/atm/simple/card/SimpleCardReader.java
==============================================================================
---
development/planet/users/niclas/book/atm/simple/cardreader/src/main/net/dpml/book/atm/simple/card/SimpleCardReader.java
(original)
+++
development/planet/users/niclas/book/atm/simple/cardreader/src/main/net/dpml/book/atm/simple/card/SimpleCardReader.java
Mon Apr 18 18:29:36 2005
@@ -2,9 +2,41 @@
import net.dpml.book.atm.CardReader;
+import net.dpml.book.atm.UserInterface;
+import net.dpml.service.ServiceException;
+import net.dpml.service.ServiceManager;
+/**
+ *
+ * @author <a href="mailto:niclas AT hedhman.org";>Niclas Hedhman</a>
+ * @metro.component name="simple-authentication" lifestyle="singleton"
+ * @metro.service type="net.dpml.book.atm.CardReader"
+ */
public class SimpleCardReader
implements CardReader
{
+ private UserInterface m_ui;
+
+ /**
+ *
+ * @param man ServiceManager provided by Metro
+ *
+ * @metro.dependency type="net.dpml.book.atm.UserInterface"
+ * key="userinterface"
+ */
+ public SimpleCardReader( ServiceManager man )
+ throws ServiceException
+ {
+ m_ui = (UserInterface) man.lookup( "userinterface" );
+ }
+
+ /**
+ * @see net.dpml.book.atm.CardReader#getCardNumber()
+ */
+ public String getCardNumber()
+ {
+ String card = m_ui.acquireUserInput( "Card number", null );
+ return card;
+ }
}
\ No newline at end of file
Added:
development/planet/users/niclas/book/atm/simple/cardreader/target/build/main/net/dpml/book/atm/simple/card/SimpleCardReader.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/cardreader/target/build/main/net/dpml/book/atm/simple/card/SimpleCardReader.java
Mon Apr 18 18:29:36 2005
@@ -0,0 +1,36 @@
+package net.dpml.book.atm.simple.card;
+
+
+import net.dpml.book.atm.CardReader;
+import net.dpml.book.atm.UserInterface;
+import net.dpml.service.ServiceException;
+import net.dpml.service.ServiceManager;
+
+
+public class SimpleCardReader
+ implements CardReader
+{
+ private UserInterface m_ui;
+
+ /**
+ *
+ * @param man ServiceManager provided by Metro
+ *
+ * @metro.dependency type="net.dpml.book.atm.UserInterface"
+ * key="userinterface"
+ */
+ public SimpleCardReader( ServiceManager man )
+ throws ServiceException
+ {
+ m_ui = (UserInterface) man.lookup( "userinterface" );
+ }
+
+ /**
+ * @see net.dpml.book.atm.CardReader#getCardNumber()
+ */
+ public String getCardNumber()
+ {
+ String card = m_ui.acquireUserInput( "Card number", null );
+ return card;
+ }
+}
\ No newline at end of file
Added:
development/planet/users/niclas/book/atm/simple/cardreader/target/classes/net/dpml/book/atm/simple/card/SimpleCardReader.class
==============================================================================
Binary file. No diff available.
Added:
development/planet/users/niclas/book/atm/simple/cardreader/target/deliverables/jars/dpml-book-atm-simple-cardreader.jar
==============================================================================
Binary file. No diff available.
Added:
development/planet/users/niclas/book/atm/simple/cardreader/target/deliverables/jars/dpml-book-atm-simple-cardreader.jar.md5
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/cardreader/target/deliverables/jars/dpml-book-atm-simple-cardreader.jar.md5
Mon Apr 18 18:29:36 2005
@@ -0,0 +1 @@
+4caa2d06f8a89943d19b9c815f95770c
\ No newline at end of file
Added: development/planet/users/niclas/book/atm/simple/dispensing/build.xml
==============================================================================
--- (empty file)
+++ development/planet/users/niclas/book/atm/simple/dispensing/build.xml
Mon Apr 18 18:29:36 2005
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Copyright 2005 Niclas Hedhman
+
+ Licensed 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.
+-->
+
+<project name="dpml-book-atm-simple-dispensing" default="install" basedir="."
+ xmlns:transit="antlib:net.dpml.transit"
xmlns:x="plugin:dpml/magic/dpml-magic-core"
+>
+
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
+
+</project>
Modified:
development/planet/users/niclas/book/atm/simple/dispensing/src/main/net/dpml/book/atm/simple/dispense/SimpleDispense.java
==============================================================================
---
development/planet/users/niclas/book/atm/simple/dispensing/src/main/net/dpml/book/atm/simple/dispense/SimpleDispense.java
(original)
+++
development/planet/users/niclas/book/atm/simple/dispensing/src/main/net/dpml/book/atm/simple/dispense/SimpleDispense.java
Mon Apr 18 18:29:36 2005
@@ -2,9 +2,35 @@
import net.dpml.book.atm.Dispense;
+import net.dpml.book.atm.UserInterface;
+import net.dpml.service.ServiceException;
+import net.dpml.service.ServiceManager;
public class SimpleDispense
implements Dispense
{
+ private UserInterface m_ui;
+
+ /**
+ *
+ * @param man ServiceManager provided by Metro
+ *
+ * @metro.dependency type="net.dpml.book.atm.UserInterface"
+ * key="userinterface"
+ */
+ public SimpleDispense( ServiceManager man )
+ throws ServiceException
+ {
+ m_ui = (UserInterface) man.lookup( "userinterface" );
+ }
+
+ /**
+ * @see net.dpml.book.atm.Dispense#dispenseMoney(java.lang.String)
+ */
+ public boolean dispenseMoney( String amount )
+ {
+ m_ui.provideUserFeedback( "Dispensing", new String[] { amount } );
+ return true;
+ }
}
\ No newline at end of file
Added:
development/planet/users/niclas/book/atm/simple/dispensing/target/build/main/net/dpml/book/atm/simple/dispense/SimpleDispense.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/dispensing/target/build/main/net/dpml/book/atm/simple/dispense/SimpleDispense.java
Mon Apr 18 18:29:36 2005
@@ -0,0 +1,36 @@
+package net.dpml.book.atm.simple.dispense;
+
+
+import net.dpml.book.atm.Dispense;
+import net.dpml.book.atm.UserInterface;
+import net.dpml.service.ServiceException;
+import net.dpml.service.ServiceManager;
+
+
+public class SimpleDispense
+ implements Dispense
+{
+ private UserInterface m_ui;
+
+ /**
+ *
+ * @param man ServiceManager provided by Metro
+ *
+ * @metro.dependency type="net.dpml.book.atm.UserInterface"
+ * key="userinterface"
+ */
+ public SimpleDispense( ServiceManager man )
+ throws ServiceException
+ {
+ m_ui = (UserInterface) man.lookup( "userinterface" );
+ }
+
+ /**
+ * @see net.dpml.book.atm.Dispense#dispenseMoney(java.lang.String)
+ */
+ public boolean dispenseMoney( String amount )
+ {
+ m_ui.provideUserFeedback( "Dispensing", new String[] { amount } );
+ return true;
+ }
+}
\ No newline at end of file
Added:
development/planet/users/niclas/book/atm/simple/dispensing/target/classes/net/dpml/book/atm/simple/dispense/SimpleDispense.class
==============================================================================
Binary file. No diff available.
Added:
development/planet/users/niclas/book/atm/simple/dispensing/target/deliverables/jars/dpml-book-atm-simple-dispensing.jar
==============================================================================
Binary file. No diff available.
Added:
development/planet/users/niclas/book/atm/simple/dispensing/target/deliverables/jars/dpml-book-atm-simple-dispensing.jar.md5
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/dispensing/target/deliverables/jars/dpml-book-atm-simple-dispensing.jar.md5
Mon Apr 18 18:29:36 2005
@@ -0,0 +1 @@
+e4703761f52fd9508120aa6cf5b4df88
\ No newline at end of file
Added: development/planet/users/niclas/book/atm/simple/userinterface/build.xml
==============================================================================
--- (empty file)
+++ development/planet/users/niclas/book/atm/simple/userinterface/build.xml
Mon Apr 18 18:29:36 2005
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Copyright 2005 Niclas Hedhman
+
+ Licensed 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.
+-->
+
+<project name="dpml-book-atm-simple-ui" default="install" basedir="."
+ xmlns:transit="antlib:net.dpml.transit"
xmlns:x="plugin:dpml/magic/dpml-magic-core"
+>
+
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
+
+</project>
Modified:
development/planet/users/niclas/book/atm/simple/userinterface/src/main/net/dpml/book/atm/simple/ui/ConsoleUi.java
==============================================================================
---
development/planet/users/niclas/book/atm/simple/userinterface/src/main/net/dpml/book/atm/simple/ui/ConsoleUi.java
(original)
+++
development/planet/users/niclas/book/atm/simple/userinterface/src/main/net/dpml/book/atm/simple/ui/ConsoleUi.java
Mon Apr 18 18:29:36 2005
@@ -1,8 +1,71 @@
package net.dpml.book.atm.simple.ui;
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.UnsupportedEncodingException;
+import java.text.MessageFormat;
+import java.util.Locale;
+import java.util.ResourceBundle;
+
import net.dpml.book.atm.UserInterface;
public class ConsoleUi
implements UserInterface
{
+ private BufferedReader m_input;
+ private ResourceBundle m_bundle;
+
+ public ConsoleUi()
+ throws UnsupportedEncodingException
+ {
+ m_bundle = ResourceBundle.getBundle( ConsoleUi.class.getName() );
+ InputStreamReader isr = new InputStreamReader( System.in, "UTF-8" );
+ m_input = new BufferedReader( isr );
+ }
+ /**
+ * @see
net.dpml.book.atm.UserInterface#acquireUserInput(java.lang.String,
java.lang.String[])
+ */
+ public String acquireUserInput( String iMessageIdentity, String[] iData )
+ {
+ String text = getMessage( iMessageIdentity, iData );
+
+ System.out.print( text );
+ try
+ {
+ return m_input.readLine();
+ } catch( IOException e )
+ {
+ // Can not happen.
+ e.printStackTrace();
+ throw new InternalError();
+ }
+ }
+
+ /**
+ * @see
net.dpml.book.atm.UserInterface#provideUserFeedback(java.lang.String,
java.lang.String[])
+ */
+ public void provideUserFeedback( String iMessageIdentity, String[] iData
)
+ {
+ String message = getMessage( iMessageIdentity, iData );
+
+ System.out.println( message );
+ }
+
+ /**
+ * @param iMessageIdentity
+ * @param iData
+ * @return
+ */
+ private String getMessage( String iMessageIdentity, String[] iData )
+ {
+ String message = m_bundle.getString( iMessageIdentity );
+ MessageFormat fmt = new MessageFormat( "" );
+ Locale curLocale = Locale.getDefault();
+ fmt.setLocale( curLocale );
+ fmt.applyPattern( message );
+ String text = fmt.format( iData );
+ return text;
+ }
+
}
\ No newline at end of file
Added:
development/planet/users/niclas/book/atm/simple/userinterface/target/build/main/net/dpml/book/atm/simple/ui/ConsoleUi.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/userinterface/target/build/main/net/dpml/book/atm/simple/ui/ConsoleUi.java
Mon Apr 18 18:29:36 2005
@@ -0,0 +1,50 @@
+package net.dpml.book.atm.simple.ui;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.UnsupportedEncodingException;
+import java.util.ResourceBundle;
+
+import net.dpml.book.atm.UserInterface;
+
+public class ConsoleUi
+ implements UserInterface
+{
+ private BufferedReader m_input;
+ private ResourceBundle m_bundle;
+
+ public ConsoleUi()
+ throws UnsupportedEncodingException
+ {
+ m_bundle = ResourceBundle.getBundle( ConsoleUi.class.getName() );
+ InputStreamReader isr = new InputStreamReader( System.in, "UTF-8" );
+ m_input = new BufferedReader( isr );
+ }
+ /**
+ * @see
net.dpml.book.atm.UserInterface#acquireUserInput(java.lang.String,
java.lang.String[])
+ */
+ public String acquireUserInput( String iMessageIdentity, String[] iData )
+ {
+ String message = m_bundle.getString( iMessageIdentity );
+ System.out.print( message );
+ try
+ {
+ return m_input.readLine();
+ } catch( IOException e )
+ {
+ // Can not happen.
+ e.printStackTrace();
+ throw new InternalError();
+ }
+ }
+
+ /**
+ * @see
net.dpml.book.atm.UserInterface#provideUserFeedback(java.lang.String,
java.lang.String[])
+ */
+ public void provideUserFeedback( String iMessageIdentity, String[] iData
)
+ {
+ String message = m_bundle.getString( iMessageIdentity );
+ System.out.println( message );
+ }
+}
\ No newline at end of file
Added:
development/planet/users/niclas/book/atm/simple/userinterface/target/classes/net/dpml/book/atm/simple/ui/ConsoleUi.class
==============================================================================
Binary file. No diff available.
Added:
development/planet/users/niclas/book/atm/simple/userinterface/target/deliverables/jars/dpml-book-atm-simple-ui.jar
==============================================================================
Binary file. No diff available.
Added:
development/planet/users/niclas/book/atm/simple/userinterface/target/deliverables/jars/dpml-book-atm-simple-ui.jar.md5
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/book/atm/simple/userinterface/target/deliverables/jars/dpml-book-atm-simple-ui.jar.md5
Mon Apr 18 18:29:36 2005
@@ -0,0 +1 @@
+ce8e0f17e3328dd551e003bd2fa9d70a
\ No newline at end of file
- svn commit: r2314 - in development/planet/users/niclas/book/atm/simple: . accounts accounts/target accounts/target/build accounts/target/build/main accounts/target/build/main/net accounts/target/build/main/net/dpml accounts/target/build/main/net/dpml/book accounts/target/build/main/net/dpml/book/atm accounts/target/build/main/net/dpml/book/atm/simple accounts/target/build/main/net/dpml/book/atm/simple/accounts accounts/target/classes accounts/target/classes/net accounts/target/classes/net/dpml accounts/target/classes/net/dpml/book accounts/target/classes/net/dpml/book/atm accounts/target/classes/net/dpml/book/atm/simple accounts/target/classes/net/dpml/book/atm/simple/accounts accounts/target/deliverables accounts/target/deliverables/jars accounts/target/test app app/target app/target/build app/target/build/main app/target/build/main/net app/target/build/main/net/dpml app/target/build/main/net/dpml/book app/target/build/main/net/dpml/book/atm app/target/build/main/net/dpml/book/atm/app app/target/classes app/target/classes/net app/target/classes/net/dpml app/target/classes/net/dpml/book app/target/classes/net/dpml/book/atm app/target/classes/net/dpml/book/atm/app app/target/deliverables app/target/deliverables/blocks app/target/deliverables/jars app/target/test authentication authentication/src/main/net/dpml/book/atm/simple/auth authentication/target authentication/target/build authentication/target/build/main authentication/target/build/main/net authentication/target/build/main/net/dpml authentication/target/build/main/net/dpml/book authentication/target/build/main/net/dpml/book/atm authentication/target/build/main/net/dpml/book/atm/simple authentication/target/build/main/net/dpml/book/atm/simple/auth authentication/target/classes authentication/target/classes/net authentication/target/classes/net/dpml authentication/target/classes/net/dpml/book authentication/target/classes/net/dpml/book/atm authentication/target/classes/net/dpml/book/atm/simple authentication/target/classes/net/dpml/book/atm/simple/auth authentication/target/deliverables authentication/target/deliverables/jars authentication/target/test cardreader cardreader/src/main/net/dpml/book/atm/simple/card cardreader/target cardreader/target/build cardreader/target/build/main cardreader/target/build/main/net cardreader/target/build/main/net/dpml cardreader/target/build/main/net/dpml/book cardreader/target/build/main/net/dpml/book/atm cardreader/target/build/main/net/dpml/book/atm/simple cardreader/target/build/main/net/dpml/book/atm/simple/card cardreader/target/classes cardreader/target/classes/net cardreader/target/classes/net/dpml cardreader/target/classes/net/dpml/book cardreader/target/classes/net/dpml/book/atm cardreader/target/classes/net/dpml/book/atm/simple cardreader/target/classes/net/dpml/book/atm/simple/card cardreader/target/deliverables cardreader/target/deliverables/jars cardreader/target/test dispensing dispensing/src/main/net/dpml/book/atm/simple/dispense dispensing/target dispensing/target/build dispensing/target/build/main dispensing/target/build/main/net dispensing/target/build/main/net/dpml dispensing/target/build/main/net/dpml/book dispensing/target/build/main/net/dpml/book/atm dispensing/target/build/main/net/dpml/book/atm/simple dispensing/target/build/main/net/dpml/book/atm/simple/dispense dispensing/target/classes dispensing/target/classes/net dispensing/target/classes/net/dpml dispensing/target/classes/net/dpml/book dispensing/target/classes/net/dpml/book/atm dispensing/target/classes/net/dpml/book/atm/simple dispensing/target/classes/net/dpml/book/atm/simple/dispense dispensing/target/deliverables dispensing/target/deliverables/jars dispensing/target/test userinterface userinterface/src/main/net/dpml/book/atm/simple/ui userinterface/target userinterface/target/build userinterface/target/build/main userinterface/target/build/main/net userinterface/target/build/main/net/dpml userinterface/target/build/main/net/dpml/book userinterface/target/build/main/net/dpml/book/atm userinterface/target/build/main/net/dpml/book/atm/simple userinterface/target/build/main/net/dpml/book/atm/simple/ui userinterface/target/classes userinterface/target/classes/net userinterface/target/classes/net/dpml userinterface/target/classes/net/dpml/book userinterface/target/classes/net/dpml/book/atm userinterface/target/classes/net/dpml/book/atm/simple userinterface/target/classes/net/dpml/book/atm/simple/ui userinterface/target/deliverables userinterface/target/deliverables/jars userinterface/target/test, niclas, 04/18/2005
Archive powered by MHonArc 2.6.24.