edu.stanford.ejalbert.launching
Class BrowserLaunchingFactory

java.lang.Object
  extended byedu.stanford.ejalbert.launching.BrowserLaunchingFactory

public class BrowserLaunchingFactory
extends Object

Factory for determining the OS and returning the appropriate version of IBrowserLaunching. The factory uses System.getProperty("os.name") to determine the OS.

Author:
Markus Gebhard

Constructor Summary
BrowserLaunchingFactory()
           
 
Method Summary
static IBrowserLaunching createSystemBrowserLaunching(AbstractLogger logger)
          Analyzes the name of the underlying operating system based on the "os.name" system property and returns the IBrowserLaunching version appropriate for the O/S.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserLaunchingFactory

public BrowserLaunchingFactory()
Method Detail

createSystemBrowserLaunching

public static IBrowserLaunching createSystemBrowserLaunching(AbstractLogger logger)
                                                      throws UnsupportedOperatingSystemException
Analyzes the name of the underlying operating system based on the "os.name" system property and returns the IBrowserLaunching version appropriate for the O/S.

Parameters:
logger - AbstractLogger
Returns:
IBrowserLaunching
Throws:
UnsupportedOperatingSystemException