现在的位置: 首页 > 综合 > 正文

[ANN] Needle-Extras 1.0.0 发布

2012年06月20日 ⁄ 综合 ⁄ 共 782字 ⁄ 字号 评论关闭

    Needle-Extras是Needle的附加库,可以和Needle一起使用来建立应用程序。这也是本软件第一次发布,包括如下内容:
* AttrInject: this is an implementation of interface injection for
Needle, based on an implementation by Christian Neukirchen (thanks,
chris2!) This allows you to specify the dependencies of a class via an
"attr_inject" macro/method. Then, you use a special service model (e.g.
"singleton_inject", or "prototype_inject"), which makes sure that those
declared dependencies are satisfied when the service is instantiated.
It's not as powerful as it could be (yet), but it makes a good
technology demonstration.

* Multicast: this is a service that allows you to create "multicast"
services--services that delegate their methods to a list of other services.

* RequireLibrary: this is actually a mini-framework for allowing
libraries to register themselves with Needle, making it easier for
clients to depend on third-party service libraries.

【上篇】
【下篇】

抱歉!评论已关闭.