public class DefaultCommandFactory extends Object implements CommandFactory
Constructor and Description |
---|
DefaultCommandFactory(Map<String,Command> commandMap)
Internal constructor, use
CommandFactoryFactory instead |
public DefaultCommandFactory(Map<String,Command> commandMap)
CommandFactoryFactory
insteadpublic Command getCommand(String cmdName)
getCommand
in interface CommandFactory
cmdName
- The name of the command to createCommand
matching the provided name, or
null if no such command exists.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.