|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.adl.Launcher
A generic launcher to start a Fractal application from the name of a template definition.
Method Summary | |
static Parser |
getBootstrapParser()
Returns the bootstrap parser component. |
static void |
main(String[] args)
Instantiates and starts the Fractal application described by the given template name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void main(String[] args) throws Exception
Launcher template [ itf ]
where template is the name of the template to be instantiated and started, and itf is the name of its Runnable interface.
This launcher initializes Fractal, constructs a composite parser component, uses it to parse the given template definition, instantiates the template component that just been parsed, starts the resulting component if it has a LifeCycleController interface, and starts a new thread to launch the application if the component provides a "run" interface of type Runnable.
args
- the command line arguments.
Exception
- if a problem occurs.public static Parser getBootstrapParser() throws InstantiationException, NoSuchInterfaceException
InstantiationException
- if the bootstrap parser cannot be created.
NoSuchInterfaceException
- if the bootstrap type factory or generic
factory interface cannot be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |