edu.nmu.os.shell
Class ShellFactory

java.lang.Object
  |
  +--edu.nmu.os.shell.ShellFactory
Direct Known Subclasses:
ShellFactoryImpl

public abstract class ShellFactory
extends java.lang.Object

Creates Shells using the factory design pattern

Since:
jdk1.4
Version:
0.1, Jan 25, 2003 12:14:01 AM
Author:
Matt Murphy
See Also:
// * @see ConfigManager

Constructor Summary
ShellFactory()
           
 
Method Summary
abstract  Shell createShell(java.lang.String[] args)
          Creates a new Shell as specified by the given arguments
static ShellFactory getFactory()
          Gets the default ShellFactory
static ShellFactory getFactory(java.lang.String name)
          Gets the ShellFactory specified by the given name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellFactory

public ShellFactory()
Method Detail

getFactory

public static ShellFactory getFactory()
                               throws ShellFactoryException
Gets the default ShellFactory

Returns:
the default ShellFactory
Throws:
ShellFactoryException - if the default ShellFactory could not be loaded

getFactory

public static ShellFactory getFactory(java.lang.String name)
                               throws ShellFactoryException
Gets the ShellFactory specified by the given name

Parameters:
name - the alias or fully qualified classname of the ShellFactory to get
Returns:
the ShellFactory specified by name
Throws:
ShellFactoryException - if no matching ShellFactory was found or there was a problem loading it

createShell

public abstract Shell createShell(java.lang.String[] args)
Creates a new Shell as specified by the given arguments

Parameters:
args - implementation specific arguments describing how the Shell should be created
Returns:
the Shell