Class DefaultLaunchHandler
java.lang.Object
net.sourceforge.jnlp.AbstractLaunchHandler
net.sourceforge.jnlp.DefaultLaunchHandler
- All Implemented Interfaces:
LaunchHandler
This default implementation shows prints the exception to
stdout and if not in headless mode displays the exception in a
dialog.
- Version:
- $Revision: 1.1 $
-
Field Summary
Fields inherited from class AbstractLaunchHandler
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleLaunchError(LaunchException exception) Called when the application could not be launched due to a fatal error, such as the inability to find the main class or non-parseable XML.voidhandleLaunchWarning(LaunchException warning) Called when launching the application can not be launched due to an error that is not fatal.voidlaunchCompleted(ApplicationInstance application) Called when an application, applet, or installer has been launched successfully (the main method or applet start method returned normally).voidlaunchInitialized(JNLPFile file) Do nothing on when initializingvoidlaunchStarting(ApplicationInstance application) Do nothing when startingvoidvalidationError(LaunchException error) Called when a security validation error occurs while launching the application.Methods inherited from class AbstractLaunchHandler
printMessage
-
Constructor Details
-
DefaultLaunchHandler
-
-
Method Details
-
handleLaunchError
Called when the application could not be launched due to a fatal error, such as the inability to find the main class or non-parseable XML.- Parameters:
exception- to be re-thrown as launch error
-
handleLaunchWarning
Called when launching the application can not be launched due to an error that is not fatal. For example a JNLP file that is not strictly correct yet does not necessarily prohibit the system from attempting to launch the application.- Parameters:
warning- exception to be consumed as warning
-
validationError
Called when a security validation error occurs while launching the application.- Parameters:
error- to be rethrown as launch error
-
launchCompleted
Called when an application, applet, or installer has been launched successfully (the main method or applet start method returned normally).- Parameters:
application- the launched application instance
-
launchInitialized
Do nothing on when initializing- Parameters:
file- the JNLP file of the instance that is starting
-
launchStarting
Do nothing when starting- Parameters:
application- the application instance that is ready
-