|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.app.servlet.command.CommandFactory
public final class CommandFactory
Command Factory helper
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |