|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
contains all possible and allowed methods to be called
Method Summary | |
Object |
executeCommand(String command,
Object arguments)
executes a command and calls the defined method |
void |
run()
runs the thread |
void |
setUserInterfaceReference(IUserInterface uiReference)
sets the reference to the user interface for the commandTemplate |
boolean |
startClass(String className,
Map parameters,
Map dependencies,
Map description)
tries to instantiate a command class by using the given parameters |
Method Detail |
public void run()
public Object executeCommand(String command, Object arguments) throws CommandNotFoundException, CommandNotAvailableException, InvalidArgumentException
command
- the commands namearguments
- the arguments needed by command (could be any object) -- it depends on the commandCommandNotFoundException
- If the command doesn't existsCommandNotAvailableException
- If the command isn't available in this moment or
causes an error e.g. loading of a file failedInvalidArgumentException
- If the arguments aren't correctpublic void setUserInterfaceReference(IUserInterface uiReference)
uiReference
- the reference to the user interfacepublic boolean startClass(String className, Map parameters, Map dependencies, Map description) throws InvocationTargetException, InstantiationException, IllegalAccessException, LinkageError, ClassNotFoundException, NoSuchMethodException, SecurityException
className
- the class to be instantiatedparameters
- containing all parameters needed by this classdependencies
- containing all dependencies to execute a commanddescription
- containing all command's descriptionInvocationTargetException
- If the class can't be invokedInstantiationException
- If the class can't be instantiatedIllegalAccessException
- If the class can't be accessed cause of an access violationLinkageError
- If the class can't be linked with the current ClassLoaderClassNotFoundException
- If the class can't be foundNoSuchMethodException
- If the needed constructor isn't presentSecurityException
- If there is a security violation
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |