public class DefaultCommandExecutor extends Object implements CommandExecutor
Constructor and Description |
---|
DefaultCommandExecutor() |
Modifier and Type | Method and Description |
---|---|
CommandResult |
execute(Context context)
执行渲染,并返回处理结果
|
CommandHandler |
getCommandHandler() |
protected String |
getMenuId(Context context) |
protected String |
getRenderPath(Context context) |
TemplateRender |
getTemplateRender() |
protected String |
render(String path,
Context context) |
void |
setCommandHandler(CommandHandler commandHandler) |
void |
setTemplateRender(TemplateRender templateRender) |
public TemplateRender getTemplateRender()
public void setTemplateRender(TemplateRender templateRender)
public CommandHandler getCommandHandler()
public void setCommandHandler(CommandHandler commandHandler)
public CommandResult execute(Context context)
CommandExecutor
execute
in interface CommandExecutor
protected String render(String path, Context context) throws TemplateException
TemplateException
Copyright © 2006–2018 TinyGroup. All rights reserved.