|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.task.MultiTaskInvoker
public class MultiTaskInvoker
Invokes tasks from a command line when the tasks are available from
an ObjectFactory
.
Constructor Summary | |
---|---|
MultiTaskInvoker(String toolName,
ObjectFactory<Task> taskFactory)
Constructor. |
Method Summary | |
---|---|
String |
getVersionMessage()
Returns the message to be reported if the "-version" flag is given. |
int |
invoke(String[] args)
Invokes one of the tasks known by this invoker given a command line. |
void |
setVersionMessage(String msg)
Sets the message which will be reported if the "-version" flag is given. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiTaskInvoker(String toolName, ObjectFactory<Task> taskFactory)
toolName
- user-known name for the tooltaskFactory
- lists available tasksMethod Detail |
---|
public int invoke(String[] args)
[<flags>] <taskname> [<task-args>]
args
- command line wordspublic void setVersionMessage(String msg)
msg
- formatted version messagepublic String getVersionMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |