|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A manager for Accounts.
| Method Summary | |
|---|---|
Account |
createNewAccount(java.lang.String name,
java.lang.Class typeClass)
Creates a new instance of Account. |
java.util.List |
getAccounts()
Returns a list of all Accounts. |
java.util.Map |
getTypes()
Returns an unmodifiable copy of the type Map. |
void |
registerType(java.lang.String name,
java.lang.Class clazz)
Registers a new type of account. |
void |
remove(Account account)
Removes an Account. |
| Method Detail |
|---|
Account createNewAccount(java.lang.String name,
java.lang.Class typeClass)
Account.
name - the name of the new AccounttypeClass - the type class to instantiate
Account instancejava.util.List getAccounts()
Accounts.
Accountsjava.util.Map getTypes()
Map. The keys are the
names of the account types, while the keys are the type classes.
Map of Strings to Classes
void registerType(java.lang.String name,
java.lang.Class clazz)
name - the name of the account typeclazz - the Class of the account type; should implement
Accountvoid remove(Account account)
Account.
account - the Account to remove
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||