public final class CommandFactory
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Command |
createCommand(java.lang.String name)
Create a command instance of the specified command name
|
static CommandFactory |
getInstance() |
void |
registerCommand(java.lang.String name,
java.lang.Class clazz)
Register a command name against an implementation
|
public static CommandFactory getInstance()
public void registerCommand(java.lang.String name,
java.lang.Class clazz)
name - Unique name of the commandclazz - Class implementation of the commandpublic Command createCommand(java.lang.String name)
name - Name of the command to create (must be registered)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.