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 c
return c
}
BoundCommand (Command c
this
this
}
}
先透露一下
[
From:http://tw.wingwit.com/Article/program/Java/ky/201311/29265.html