org.openejb.server.telnet
Class Command

java.lang.Object
  extended byorg.openejb.server.telnet.Command
Direct Known Subclasses:
Exit, GroovySh, Help, Lookup, Ls, Prompt, Stop, Test, Version

public class Command
extends Object


Nested Class Summary
static class Command.Arguments
           
 
Field Summary
protected static HashMap commands
           
protected static Command unknownCommand
           
 
Constructor Summary
Command()
           
 
Method Summary
 void exec(Command.Arguments args, DataInputStream in, PrintStream out)
           
static Command getCommand(String name)
           
protected static Command loadCommand(Class commandClass)
           
protected static void loadCommandList()
           
protected static void register(String name, Class cmd)
           
protected static void register(String name, Command cmd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commands

protected static HashMap commands

unknownCommand

protected static Command unknownCommand
Constructor Detail

Command

public Command()
Method Detail

register

protected static void register(String name,
                               Command cmd)

register

protected static void register(String name,
                               Class cmd)

getCommand

public static Command getCommand(String name)

exec

public void exec(Command.Arguments args,
                 DataInputStream in,
                 PrintStream out)
          throws IOException
Throws:
IOException

loadCommand

protected static Command loadCommand(Class commandClass)

loadCommandList

protected static void loadCommandList()


Copyright © 1999-2005 OpenEJB. All Rights Reserved.