红联Linux门户
Linux帮助

MacWire 0.5发布,新增Interceptors

发布时间:2013-10-02 09:06:41来源:红联作者:empast
MacWire 0.5 发布了,该版本新增 Interceptors ,这对实现横切点概念非常有用。详细介绍请看http://planet.jboss.org/post/macwire_0_5_interceptors

MacWire 为给定的类生成新的实例创建代码,在 Scala 宏的帮助下通过在构造函数参数的封闭类型中使用值实现。

MacWire 可以帮助实现依赖注入模式,不必须手工编写代码。

官方首页:https://github.com/adamw/macwire

来自:开源中国社区
文章评论

共有 0 条评论