|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.nmu.os.shell.ShellFactory
Creates Shells using the factory design pattern
Shell
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(java.lang.String name)
Gets the ShellFactory specified by the given name |
static ShellFactory |
registerFactory(java.lang.String name,
ShellFactory sf)
Registers the given ShellFactory under the given name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShellFactory()
Method Detail |
public static ShellFactory getFactory(java.lang.String name) throws ShellFactoryException, java.lang.NullPointerException, java.lang.IllegalArgumentException
name
- the alias or fully qualified classname of the
ShellFactory to get
ShellFactoryException
- if the ShellFactory
was not found
java.lang.NullPointerException
- if name is null
java.lang.IllegalArgumentException
- if name is the empty
Stringpublic static ShellFactory registerFactory(java.lang.String name, ShellFactory sf) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
name
- the name of the ShellFactorysf
- the ShellFactory to register
java.lang.NullPointerException
- if name is null
java.lang.IllegalArgumentException
- if name is the empty
Stringpublic abstract Shell createShell(java.lang.String[] args) throws ShellFactoryException
args
- implementation specific arguments describing how the
Shell should be created
ShellFactoryException
- if there is a problem creating
the Shell
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |