edu.stanford.ejalbert
Class BrowserLauncherRunner
java.lang.Object
edu.stanford.ejalbert.BrowserLauncherRunner
- All Implemented Interfaces:
- Runnable
- class BrowserLauncherRunner
- extends Object
- implements Runnable
This is a convenience class to facilitate executing the browser launch in
a separate thread. This class is used from within BrowserLauncher
when handling calls to open a url.
- Author:
- Jeff Chapman
Constructor Summary |
(package private) |
BrowserLauncherRunner(IBrowserLaunching launcher,
List browserList,
String url,
AbstractLogger logger,
BrowserLauncherErrorHandler errorHandler)
|
(package private) |
BrowserLauncherRunner(IBrowserLaunching launcher,
String url,
AbstractLogger logger,
BrowserLauncherErrorHandler errorHandler)
Takes the items necessary for launching a browser and handling any
exceptions. |
(package private) |
BrowserLauncherRunner(IBrowserLaunching launcher,
String browserName,
String url,
AbstractLogger logger,
BrowserLauncherErrorHandler errorHandler)
|
Method Summary |
void |
run()
When an object implementing interface Runnable is used to
create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowserLauncherRunner
BrowserLauncherRunner(IBrowserLaunching launcher,
String url,
AbstractLogger logger,
BrowserLauncherErrorHandler errorHandler)
- Takes the items necessary for launching a browser and handling any
exceptions.
- Parameters:
launcher
- IBrowserLaunchingurl
- Stringlogger
- AbstractLoggererrorHandler
- BrowserLauncherErrorHandler
BrowserLauncherRunner
BrowserLauncherRunner(IBrowserLaunching launcher,
String browserName,
String url,
AbstractLogger logger,
BrowserLauncherErrorHandler errorHandler)
BrowserLauncherRunner
BrowserLauncherRunner(IBrowserLaunching launcher,
List browserList,
String url,
AbstractLogger logger,
BrowserLauncherErrorHandler errorHandler)
run
public void run()
- When an object implementing interface
Runnable
is used to
create a thread, starting the thread causes the object's
run
method to be called in that separately executing
thread.
This method will make the call to open the browser and display the
url. If an exception occurs, it will be passed to the instance of
BrowserLauncherErrorHandler that has been passed into the constructor.
- Specified by:
run
in interface Runnable