您现在的位置是:首页
>
build的意思 关于build tool的构想 从Ant说起[8]
关于 uild tool的构想 从A t说起[8] java代码 i terface Comma dBi der{ Comma d i d(O ject v) } 然后定义Bou dComma d类
关于build tool的构想 从Ant说起[8]
![build的意思 关于build tool的构想 从Ant说起[8]](http://img.zhputi.com/uploads/39e8/39e86237a5909586f7bd9a6df51173c120655.jpg)
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 execute(ctxt); return c bind(v) execute(ctxt); } BoundCommand (Command c CommandBinder c ){ this c = c ; this c = c ; } }
先透露一下 这个BoundCommand非常重要 就是它负责在不同的mand间传递信息
lishixinzhi/Article/program/Java/ky/201311/29265 很赞哦! (1038)