|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.utils4swing.appstarter.AppStarter
public final class AppStarter
Starts any application by injecting single jars, directories with jars or classpath directories into the classpath.
| Constructor Summary | |
|---|---|
AppStarter(AppStarterConfig config)
Constructor with configuration. |
|
AppStarter(AppStarterConfig config,
AppStarterListener listener)
Constructor with configuration and listener. |
|
| Method Summary | |
|---|---|
void |
execute()
Starts the application. |
static void |
main(java.lang.String[] args)
Starts the application from the command line. |
void |
start(StartType startType,
java.util.List<ClasspathEntry> classpathEntries,
java.lang.String mainClass,
java.util.List<java.lang.String> arguments)
Injects entries in the classpath and starts the application. |
static void |
start(StartType startType,
java.util.List<ClasspathEntry> classpathEntries,
java.lang.String mainClass,
java.util.List<java.lang.String> arguments,
AppStarterListener listener)
Injects entries in the classpath and starts the application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppStarter(AppStarterConfig config)
config - Configuration.
public AppStarter(AppStarterConfig config,
AppStarterListener listener)
config - Configuration.listener - Listener to be notified when the application started.| Method Detail |
|---|
public final void start(StartType startType,
java.util.List<ClasspathEntry> classpathEntries,
java.lang.String mainClass,
java.util.List<java.lang.String> arguments)
throws StartApplicationException
startType - Start an application or an applet?classpathEntries - Entries to inject into the classpath.mainClass - Main class to start (applet class or class with main method).arguments - Arguments for the application or the applet. Arguments for an
applet must have the form "<key>=<value>".
StartApplicationException - Application failed to start.
public static final void start(StartType startType,
java.util.List<ClasspathEntry> classpathEntries,
java.lang.String mainClass,
java.util.List<java.lang.String> arguments,
AppStarterListener listener)
throws StartApplicationException
startType - Start an application or an applet?classpathEntries - Entries to inject into the classpath.mainClass - Main class to start (applet class or class with main method).arguments - Arguments for the application or the applet. Arguments for an
applet must have the form "<key>=<value>".listener - Listener to be notified when the target application started.
StartApplicationException - Application failed to start.public final void execute()
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - Command line arguments.
java.lang.Exception - Start failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||