public class DefaultLaunchHandler extends AbstractLaunchHandler
logger
Constructor and Description |
---|
DefaultLaunchHandler(net.sourceforge.jnlp.util.logging.OutputController out) |
Modifier and Type | Method and Description |
---|---|
void |
launchCompleted(ApplicationInstance application)
Called when an application, applet, or installer has been
launched successfully (the main method or applet start method
returned normally).
|
void |
launchError(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.
|
void |
launchInitialized(JNLPFile file)
Do nothing on when initializing
|
void |
launchStarting(ApplicationInstance application)
Do nothing when starting
|
boolean |
launchWarning(LaunchException warning)
Called when launching the application can not be launched
due to an error that is not fatal.
|
boolean |
validationError(LaunchException error)
Called when a security validation error occurs while
launching the application.
|
printMessage
public DefaultLaunchHandler(net.sourceforge.jnlp.util.logging.OutputController out)
public void launchError(LaunchException exception)
exception
- to be re-thrown as launch errorpublic boolean launchWarning(LaunchException warning)
warning
- exception to be consummed as warningpublic boolean validationError(LaunchException error)
error
- to be rethrown as launch errorpublic void launchCompleted(ApplicationInstance application)
application
- the launched application instancepublic void launchInitialized(JNLPFile file)
file
- the JNLP file of the instance that is startingpublic void launchStarting(ApplicationInstance application)
application
- the application instance that is ready