org.apache.xbean.command
Class CommandRegistry

java.lang.Object
  extended by org.apache.xbean.command.CommandRegistry

public class CommandRegistry
extends Object


Field Summary
protected static HashMap commands
           
protected static CommandRegistry unknownCommand
           
 
Constructor Summary
CommandRegistry()
           
 
Method Summary
static Command getCommand(String name)
           
static Map getCommandMap()
           
protected static Command loadCommand(Class commandClass)
           
protected static void loadCommandList()
          TODO: Replace this part with the classpath magic
static void register(String name, Class cmd)
           
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 final HashMap commands

unknownCommand

protected static final CommandRegistry unknownCommand
Constructor Detail

CommandRegistry

public CommandRegistry()
Method Detail

getCommandMap

public static Map getCommandMap()

register

public static void register(String name,
                            Command cmd)

register

public static void register(String name,
                            Class cmd)

getCommand

public static Command getCommand(String name)

loadCommand

protected static Command loadCommand(Class commandClass)

loadCommandList

protected static void loadCommandList()
TODO: Replace this part with the classpath magic



Copyright © 2005-2011. All Rights Reserved.