红联Linux门户
Linux帮助

MacWire 0.2发布,Scala的依赖注入实现

发布时间:2013-04-28 09:12:23来源:红联作者:empast
MacWire 0.2 版本发布了,该版本简化了 scope 的处理。详情请看http://planet.jboss.org/post/macwire_0_2_scopes_are_simple

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

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

下载地址:https://github.com/adamw/macwire

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

共有 0 条评论