|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 Account s. |
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)
AccountManager
Account
.
createNewAccount
in interface AccountManager
name
- the name of the new Account
typeClass
- the type class to instantiate
Account
instancepublic java.util.List getAccounts()
AccountManager
Account
s.
getAccounts
in interface AccountManager
Account
spublic java.util.Map getTypes()
Map
. The keys are the
names of the account types, while the keys are the type classes.
getTypes
in interface AccountManager
Map
of String
s to Class
espublic void registerType(java.lang.String name, java.lang.Class clazz)
AccountManager
registerType
in interface AccountManager
name
- the name of the account typeclazz
- the Class
of the account type; should implement
Account
public void remove(Account account)
AccountManager
Account
.
remove
in interface AccountManager
account
- the Account
to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |