public final class CommandFactory extends Object
Modifier and Type | Method and Description |
---|---|
Command |
createCommand(String name)
Create a command instance of the specified command name
|
static CommandFactory |
getInstance() |
void |
registerCommand(String name,
Class clazz)
Register a command name against an implementation
|
public static CommandFactory getInstance()
public void registerCommand(String name, Class clazz)
name
- Unique name of the commandclazz
- Class implementation of the commandCopyright © 2005–2017 Alfresco Software. All rights reserved.