StrangeIoC
0.6.0
The IoC/Binding Framework for Unity3D and C#
|
Supplies injection for all mapped dependencies. More...
Public Member Functions | |
object | Instantiate (IInjectionBinding binding) |
Request an instantiation based on the given binding. More... | |
object | Inject (object target) |
Request that the provided target be injected. | |
object | Inject (object target, bool attemptConstructorInjection) |
Request that the provided target be injected. | |
void | Uninject (object target) |
Clear the injections from the provided instance. More... | |
Properties | |
IInjectorFactory | factory [get, set] |
IInjectionBinder | binder [get, set] |
IReflectionBinder | reflector [get, set] |
Properties inherited from strange.extensions.injector.api.IInjector | |
IInjectorFactory | factory [get, set] |
Get/set an InjectorFactory. | |
IInjectionBinder | binder [get, set] |
Get/set an InjectionBinder. | |
IReflectionBinder | reflector [get, set] |
Get/set a ReflectionBinder. | |
Supplies injection for all mapped dependencies.
Extension satisfies injection dependencies. Works in conjuntion with (and therefore relies on) the Reflector.
Dependencies may be Constructor injections (all parameters will be satisfied), or setter injections.
Classes utilizing this injector must be marked with the following metatags:
The Injection system is quite loud and specific where dependencies are unmapped, throwing Exceptions to warn you. This is exceptionally useful in ensuring that your app is well structured.
|
inline |
Request an instantiation based on the given binding.
This request is made to the Injector, but it's really the InjectorFactory that does the instantiation.
Implements strange.extensions.injector.api.IInjector.
|
inline |
Clear the injections from the provided instance.
Note that Uninject can only clean public properties...therefore only setters will be uninjected...not injections provided via constructor injection
Implements strange.extensions.injector.api.IInjector.