public class Wrapper
extends java.lang.Object
implements java.lang.Runnable
main method)
or BeanShell code from the command line or other classes. The stuff is executed
in a seperate Thread if the start method is used.
FIXME! TT 2025-10-09: This class is ancient, and only used by the similar ancient LogWindow class. You should probably
not use this class for anything else.| Constructor and Description |
|---|
Wrapper(java.lang.Class _class,
java.lang.String[] _args)
Ye olde constructor for calling a Class('s main method).
|
Wrapper(java.lang.Class _class,
java.lang.String[] _args,
java.lang.ThreadGroup _tg) |
Wrapper(java.lang.reflect.Method _method,
java.lang.String[] _args)
Ye olde constructor for calling a method (which takes only a
String array as argument). |
Wrapper(java.lang.reflect.Method _method,
java.lang.String[] _args,
java.lang.ThreadGroup _tg) |
Wrapper(java.lang.String _bSHScript)
Ye olde constructor for executing BeanShell script.
|
Wrapper(java.lang.String _bSHScript,
java.lang.ThreadGroup _tg) |
| Modifier and Type | Method and Description |
|---|---|
static Wrapper |
createInstance(java.lang.String[] _args)
Check all the (commandline) arguments that were passed and configure a
new Wrapper accordingly.
|
static Wrapper |
createInstance(java.lang.String[] _args,
java.lang.ThreadGroup _tg) |
java.lang.String |
getTitle()
Returns the "command" we are running as a
String suitable for
use as a window title or similar. |
static void |
main(java.lang.String[] _args)
main method for calling this class from the commandline. |
void |
run()
Actually runs the BeanShell script or the class's
main method. |
void |
start()
Execute our "command" in own
Thread. |
public Wrapper(java.lang.String _bSHScript)
_bSHScript - String with BeanShell script code to be executed._tg - (optional) ThreadGroup to use if "command" shall be started in seperate Threadpublic Wrapper(java.lang.String _bSHScript,
java.lang.ThreadGroup _tg)
public Wrapper(java.lang.Class _class,
java.lang.String[] _args)
_class - The Class who's main method shall be called_args - String array with the "commandline" arguments to pass_tg - (optional) ThreadGroup to use if "command" shall be started in seperate Threadpublic Wrapper(java.lang.Class _class,
java.lang.String[] _args,
java.lang.ThreadGroup _tg)
public Wrapper(java.lang.reflect.Method _method,
java.lang.String[] _args)
String array as argument)._method - The Method that shall be called_args - String array with the "commandline" arguments to pass_tg - (optional) ThreadGroup to use if "command" shall be started in seperate Threadpublic Wrapper(java.lang.reflect.Method _method,
java.lang.String[] _args,
java.lang.ThreadGroup _tg)
public void run()
main method.run in interface java.lang.Runnablepublic void start()
Thread.public java.lang.String getTitle()
String suitable for
use as a window title or similar.Stringpublic static Wrapper createInstance(java.lang.String[] _args) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException
_args - the commandline arguments passed as String[]java.lang.ClassNotFoundExceptionjava.lang.NoSuchMethodExceptionpublic static Wrapper createInstance(java.lang.String[] _args, java.lang.ThreadGroup _tg) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException
java.lang.ClassNotFoundExceptionjava.lang.NoSuchMethodExceptionpublic static void main(java.lang.String[] _args)
throws java.lang.ClassNotFoundException,
java.lang.NoSuchMethodException
main method for calling this class from the commandline._args - String array with the commandline argumentsjava.lang.ClassNotFoundExceptionjava.lang.NoSuchMethodExceptionCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.