StrangeIoC  0.6.0
The IoC/Binding Framework for Unity3D and C#
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | Properties | List of all members
strange.extensions.injector.impl.Injector Class Reference

Supplies injection for all mapped dependencies. More...

Inheritance diagram for strange.extensions.injector.impl.Injector:
strange.extensions.injector.api.IInjector

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.
 

Detailed Description

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.

Member Function Documentation

object strange.extensions.injector.impl.Injector.Instantiate ( IInjectionBinding  binding)
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.

void strange.extensions.injector.impl.Injector.Uninject ( object  target)
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.


The documentation for this class was generated from the following file: