001 package topdown.service;
002
003 /**
004 * Creates an instance of the Bank.
005 */
006 public class BankFactory {
007
008 /**
009 * A factory that creates implementations of Bank (for the purposes of this application an in-memory bank implementation).
010 * @return the bank instance.
011 */
012 public static Bank createBank(){
013 return BankMemDB.newInstance();
014 }
015 }