|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.mflow.impl.AccountManagerImpl
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Account createNewAccount(java.lang.String name,
java.lang.Class typeClass)
AccountManagerAccount.
createNewAccount in interface AccountManagername - the name of the new AccounttypeClass - the type class to instantiate
Account instancepublic java.util.List getAccounts()
AccountManagerAccounts.
getAccounts in interface AccountManagerAccountspublic java.util.Map getTypes()
Map. The keys are the
names of the account types, while the keys are the type classes.
getTypes in interface AccountManagerMap of Strings to Classes
public void registerType(java.lang.String name,
java.lang.Class clazz)
AccountManager
registerType in interface AccountManagername - the name of the account typeclazz - the Class of the account type; should implement
Accountpublic void remove(Account account)
AccountManagerAccount.
remove in interface AccountManageraccount - the Account to remove
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||