FileDocCategorySizeDatePackage
BasicAccountFactory_Impl.javaAPI DocExample1101Thu Nov 08 00:23:06 GMT 2001com.ora.rmibook.chapter17.basic.factory

BasicAccountFactory_Impl

public class BasicAccountFactory_Impl extends BasicFactory_Impl

Fields Summary
Constructors Summary
public BasicAccountFactory_Impl()

    
Methods Summary
protected java.util.HashMapcreateServers()

        HashMap returnValue = new HashMap();

        returnValue.put("Bob", getAccount("Bob", 10000));
        returnValue.put("Alex", getAccount("Alex", 8400));
        returnValue.put("Trish", getAccount("Trish", 18700));
        returnValue.put("Pat", getAccount("Pat", 122100));
        returnValue.put("David", getAccount("David", 3100));
        returnValue.put("Mary", getAccount("Mary", 95200));
        return returnValue;
    
private AccountgetAccount(java.lang.String name, int cents)

        try {
            return new Account_Impl(new Money(cents));
        } catch (Exception e) {
            System.out.println(e);
        }
        return null;