[Ann] NEEDLE-EXTRAS 1.0.0 release

xiaoxiao2021-03-06  73

NEEDLE-Extras is the additional library of NEEDLE, which can be used with Needle to create an application. This is also the first release of the software, including the following: * AttrInject: this is 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 an "attr_inject" macro / method. Then, you use a special service model (eg "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 theselves with needle, Making It Easier for Clients To Depend On Third-Party Service Libraries.

转载请注明原文地址:https://www.9cbs.com/read-90044.html

New Post(0)