java代碼
class SeqCommand implements Command{
private final Command c
private final Command c
public Object execute(CommandContext ctxt){
c
return c
}
SeqCommand (Command c
this
this
}
}
上面這個簡單的Command
除了順序執行
[
From:http://tw.wingwit.com/Article/program/Java/ky/201311/29272.html