class PredefinedCommandFactory extends Object implements CommandFactory
Constructor and Description |
---|
PredefinedCommandFactory()
Default constructor
|
PredefinedCommandFactory(String configPath)
Constructor which builds up command types
|
Modifier and Type | Method and Description |
---|---|
Command |
createCommand(String commandName)
Create new command instance
|
Map<String,Class<? extends Command>> |
getCommandTypes() |
PredefinedCommandFactory() throws IOException
IOException
- Thrown when Jar is corruptedpublic PredefinedCommandFactory(String configPath) throws IOException
configPath
- Path of configuration file in classpathIOException
- Thrown when Jar is corruptedpublic Command createCommand(String commandName)
CommandFactory
createCommand
in interface CommandFactory
commandName
- Command namepublic Map<String,Class<? extends Command>> getCommandTypes()
getCommandTypes
in interface CommandFactory
Copyright © 2008–2018. All rights reserved.