public class DefaultLaunchHandler extends java.lang.Object implements LaunchHandler
| Constructor and Description |
|---|
DefaultLaunchHandler() |
| 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.
|
protected static void |
printMessage(LaunchException ex)
Print a message to stdout.
|
boolean |
validationError(LaunchException security)
Called when a security validation error occurs while
launching the application.
|
public void launchError(LaunchException exception)
launchError in interface LaunchHandlerpublic boolean launchWarning(LaunchException warning)
launchWarning in interface LaunchHandlerpublic boolean validationError(LaunchException security)
validationError in interface LaunchHandlerpublic void launchCompleted(ApplicationInstance application)
launchCompleted in interface LaunchHandlerapplication - the launched application instanceprotected static void printMessage(LaunchException ex)
public void launchInitialized(JNLPFile file)
launchInitialized in interface LaunchHandlerpublic void launchStarting(ApplicationInstance application)
launchStarting in interface LaunchHandlerapplication - the application instance that is ready