org.datamanager.simpleton
Class BrowserLauncherSimpleton

java.lang.Object
  |
  +--org.datamanager.kernel.Simpleton
        |
        +--org.datamanager.simpleton.BrowserLauncherSimpleton
All Implemented Interfaces:
EventHandler

public class BrowserLauncherSimpleton
extends Simpleton
implements EventHandler

This class will handle the LaunchBrowserWithURLEvent by using JNLP to launch the default browser with the URL contained in the Event.

Author:
Chris Dent

Nested Class Summary
 
Nested classes inherited from class org.datamanager.kernel.Simpleton
Simpleton.Information, Simpleton.Priority
 
Constructor Summary
BrowserLauncherSimpleton()
           
 
Method Summary
 void handle(DataManagerEvent dataManagerEvent)
          Handles the LaunchBrowserWithURLEvent, calling launchBrowser(URL) with the URL found in the event.
 void process()
          Subscribes to the pool to hear the LaunchBrowserWithURLEvent.
 
Methods inherited from class org.datamanager.kernel.Simpleton
clone, getInformation, getPriority, setInformation, setPriority, start
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserLauncherSimpleton

public BrowserLauncherSimpleton()
Method Detail

process

public void process()
Subscribes to the pool to hear the LaunchBrowserWithURLEvent.

Specified by:
process in class Simpleton

handle

public void handle(DataManagerEvent dataManagerEvent)
Handles the LaunchBrowserWithURLEvent, calling launchBrowser(URL) with the URL found in the event.

Specified by:
handle in interface EventHandler
Parameters:
dataManagerEvent - the LaunchBrowserWithURLEvent


See the Helium Website