01: package de.schlund.pfixcore.example.bank;
02:
03: import de.schlund.pfixcore.example.bank.model.BankDAO;
04: import de.schlund.pfixcore.example.bank.model.BankInMemoryDAO;
05:
06: public class BankApplication {
07:
08: private static BankApplication instance = new BankApplication();
09:
10: private BankDAO bankDAO;
11:
12: public BankApplication() {
13: bankDAO = new BankInMemoryDAO();
14: }
15:
16: public static BankApplication getInstance() {
17: return instance;
18: }
19:
20: public BankDAO getBankDAO() {
21: return bankDAO;
22: }
23:
24: }
|