|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.taverna.raven.launcher.Launcher
public class Launcher
Launcher called by the PreLauncher after making sure Raven etc. is on
the classpath.
The Launcher will find the Raven LocalRepository through
ApplicationRuntime.getRavenRepository(). It then initialises the
PluginManager so that it can use the SpiRegistry of
Launchables to find the instance of the class named by
ApplicationConfig.APP_MAIN in the
raven-launcher.properties. The
Launchable.launch(String[]) method is then executed.
| Constructor Summary | |
|---|---|
Launcher()
|
|
| Method Summary | |
|---|---|
Launchable |
findMainClass(java.lang.String className)
Find the instance of the given class name by looking it up in the SpiRegistry of Launchables. |
int |
launchMain(java.lang.String[] args)
Launch the main Launchable method as resolved from
findMainClass(String). |
static void |
main(java.lang.String[] args)
Call the "real" application |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Launcher()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args -
public Launchable findMainClass(java.lang.String className)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException
SpiRegistry of Launchables.
The PluginManager is also initialised.
className -
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundExceptionpublic int launchMain(java.lang.String[] args)
Launchable method as resolved from
findMainClass(String).
args - Arguments to pass to Launchable.launch(String[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||