|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wimpi.telnetd.shell.ShellManager
public class ShellManager
This class implements a Manager Singleton that takes care
for all shells to be offered.
Shell| Method Summary | |
|---|---|
static ShellManager |
createShellManager(java.util.HashMap shells)
creates an empty shell manager |
static ShellManager |
createShellManager(java.util.Properties settings)
Factory method for creating the Singleton instance of this class. Note that this factory method is called by the net.wimpi.telnetd.TelnetD class. |
static ShellManager |
getReference()
Accessor method for the Singleton instance of this class. Note that it returns null if the instance was not properly created beforehand. |
Shell |
getShell(java.lang.String key)
Accessor method for shells that have been set up. Note that it uses a factory method that any shell should provide via a specific class operation. |
java.util.HashMap |
getShells()
|
void |
setShells(java.util.HashMap shells)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Shell getShell(java.lang.String key)
key - String that represents a shell name.
public static ShellManager createShellManager(java.util.Properties settings)
throws BootException
settings - Properties defining the shells as described in the
class documentation.
BootExceptionpublic static ShellManager createShellManager(java.util.HashMap shells)
public static ShellManager getReference()
public java.util.HashMap getShells()
public void setShells(java.util.HashMap shells)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||