- public class ShellManager
- extends java.lang.Object
This class implements a Manager Singleton that takes care
for all shells to be offered.
The resources can be defined via properties that contain following
The definition of any shell is simply represented by a fully qualified class name, of a class
that implements the shell interface. Please read the documentation of this interface carefully.
- All system defined shells:
- Login: first shell run on top of the connection.
- Queue: shell thats run for connections placed into the queue.
- Admin: shell for administrative tasks around the embedded telnetd.
- Custom defined shells:
Declared as value to the customshells key, in form of a comma seperated
list of names. For each declared name there has to be an entry defining the shell.
The properties are passed on creation through the factory method, which is called by the
- 2.0 (13/03/2005)
- Dieter Wimberger
- See Also:
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public 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.
key - String that represents a shell name.
- Shell instance that has been obtained from the
public static ShellManager createShellManager(java.util.Properties settings)
- Factory method for creating the Singleton instance of
Note that this factory method is called by the
settings - Properties defining the shells as described in the
- ShellManager Singleton instance.
public static ShellManager getReference()
- Accessor method for the Singleton instance of this class.
Note that it returns null if the instance was not properly
- ShellManager Singleton instance reference.
Copyright © 2000-2005 Dieter Wimberger.