org.objectweb.dream.adl
Class Launcher

java.lang.Object
  extended by org.objectweb.dream.adl.Launcher

public final class Launcher
extends Object

A class to launch a component from its definition from the command line. Usage:
Launcher [-factory=<factory def>] [-backend=<backend def>] <definition> [ <itf> ]
Where <definition> is the name of the component to be instantiated and started,and <itf> is the name of its Runnable interface, if it has one.


Method Summary
static Object launchComponent(String[] args)
          Launches a component.
static void main(String[] args)
          Entry point
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
                 throws Exception
Entry point

Parameters:
args - command line arguments
Throws:
Exception - if error.

launchComponent

public static Object launchComponent(String[] args)
                              throws Exception
Launches a component.

Parameters:
args - command line arguments
Returns:
the launched component
Throws:
Exception - if error.


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.