java代码
interface CommandBinder{
Command bind(Object v);
}
然后定义BoundCommand类
java代码
class BoundCommand implements Command{
private final Command c;
private final CommandBinder c;
public Object execute(CommandContext ctxt){
final Object v =return cexecute(ctxt);
return cbind(v)execute(ctxt);
}
BoundCommand (Command c CommandBinder c){
thisc = c;
thisc = c;
}
}
先透露一下这个BoundCommand非常重要就是它负责在不同的command间传递信息
[] [] [] [] [] [] [] [] [] [] []