Package eu.bandm.tools.util.java
Class EntryPoint.ConsoleRunner
java.lang.Object
eu.bandm.tools.util.java.EntryPoint.ConsoleRunner
- Enclosing interface:
EntryPoint<T>
A generic application main class.
-
Method Summary
-
Method Details
-
main
public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException Runs an application.The first command line argument should be the name of a class that implements
EntryPoint<? extends Runnable>
. All further command line arguments are passed on to the application. The constructed application main object is run by calling the methodRunnable.run()
.- Parameters:
args
- the command line argument- Throws:
ClassNotFoundException
- if the named class cannot be loadedInstantiationException
- if a new instance of the named class cannot be createdNoSuchMethodException
- if the named class does not define a zero-argument constructorIllegalAccessException
- if the zero-argument constructor of the named class cannot be accessed from this contextInvocationTargetException
- if the zero-argument constructor of the named class throws an exception
-