JML

org.multijava.launcher
Class LauncherFactory

java.lang.Object
  extended byorg.multijava.launcher.LauncherFactory

public class LauncherFactory
extends Object

A factory that provides access to the correct implementation of the launcher

Version:
$Revision: 1.3 $
Author:
Kristina Boysen

Field Summary
private  CompactLauncher compactLauncher
          Singleton instance of the CompactLauncher
private static LauncherFactory factory
          Singleton instance of the LauncherFactory
private  FullLauncher fullLauncher
          Singleton instance of the FullLauncher
protected  String logoName
          Filename of the logo for this tool
protected  String name
          The name of the set of tools that this Launcher can run
protected  ResettableIterator tools
          Iterator through all the tools.
 
Constructor Summary
LauncherFactory()
           
 
Method Summary
 CompactLauncher getCompactLauncher()
          Returns a singleton instance of the CompactLauncher
 FullLauncher getFullLauncher()
          Returns a singleton instance of the FullLauncher
 ImpLauncher getImpLauncherInstance(String name, ResettableIterator tools, String logoName)
          Determines which instance of ImpLaunchers to provide to the caller.
static LauncherFactory instance()
          Provides an instance of the LauncherFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

private static LauncherFactory factory
Singleton instance of the LauncherFactory


compactLauncher

private CompactLauncher compactLauncher
Singleton instance of the CompactLauncher


fullLauncher

private FullLauncher fullLauncher
Singleton instance of the FullLauncher


name

protected String name
The name of the set of tools that this Launcher can run


tools

protected ResettableIterator tools
Iterator through all the tools. The tools are represented as a Map.Entry, with the keys being the tool descriptions and the values are represented as AbstractLaunchTools


logoName

protected String logoName
Filename of the logo for this tool

Constructor Detail

LauncherFactory

public LauncherFactory()
Method Detail

instance

public static LauncherFactory instance()
Provides an instance of the LauncherFactory


getImpLauncherInstance

public ImpLauncher getImpLauncherInstance(String name,
                                          ResettableIterator tools,
                                          String logoName)
Determines which instance of ImpLaunchers to provide to the caller.


getCompactLauncher

public CompactLauncher getCompactLauncher()
Returns a singleton instance of the CompactLauncher


getFullLauncher

public FullLauncher getFullLauncher()
Returns a singleton instance of the FullLauncher


JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.