java代碼
class FinallyCommand implements Command{
private final Command c
private final Command c
public Object execute(CommandContext ctxt){
try{
return c
}
finally{
c
}
}
FinallyCommand (Command c
this
this
}
}
前面的順序執行
[
From:http://tw.wingwit.com/Article/program/Java/ky/201311/29264.html