org.databene.task
Class RunnableMain

java.lang.Object
  extended by org.databene.task.RunnableMain

public class RunnableMain
extends java.lang.Object

Provides invocation of an implementation of java.lang.Runnable from the command line.

Created: 22.01.2007 10:11:15

Since:
0.2

Constructor Summary
RunnableMain()
           
 
Method Summary
static void main(java.lang.String[] args)
          Instantiates the class specified by args[0] and calls its run() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunnableMain

public RunnableMain()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.ClassNotFoundException,
                        java.lang.IllegalAccessException,
                        java.lang.InstantiationException
Instantiates the class specified by args[0] and calls its run() method. The class needs to implement the interface java.lang.Runnable and to provide a public default constructor.

Parameters:
args - a String array of length 1 containing the name of the class to instantiate and execute
Throws:
java.lang.ClassNotFoundException - if the class could not be found
java.lang.IllegalAccessException - if the constructor is not public
java.lang.InstantiationException - if the class is abstract


Copyright © 2013. All Rights Reserved.