📄 normalcommandfactory.java
字号:
package com.wxd.common.popedom.domain.command.factory;
import com.wxd.common.popedom.domain.command.Command;
import com.wxd.common.popedom.domain.command.CommandContext;
import com.wxd.common.popedom.domain.command.CommandFactory;
import com.wxd.common.popedom.domain.command.CommandProxy;
public class NormalCommandFactory extends CommandFactory{
private String operatorId;
private String actionView;
public NormalCommandFactory(String operatorId, String actionView) {
this.operatorId = operatorId;
this.actionView = actionView;
}
@Override
public Command getCommand(Class cmdClazz,Object cmdParameter) {
Command cmd=this.getCmdFromActionSet(cmdClazz);
CommandContext context=new CommandContext();
context.setParamObject(cmdParameter);
cmd.setContext(context);
return new CommandProxy(cmd);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -