StrangeIoC
0.6.0
The IoC/Binding Framework for Unity3D and C#
|
The Binding for Injections. More...
Public Member Functions | |
InjectionBinding (Binder.BindingResolver resolver) | |
IInjectionBinding | ToInject (bool value) |
Boolean setter to optionally override injection. If false, the instance will not be injected after instantiation. | |
IInjectionBinding | ToSingleton () |
Map the Binding to a Singleton so that every GetInstance() on the Binder Key returns the same imstance. | |
IInjectionBinding | ToValue (object o) |
Map the Binding to a stated instance so that every GetInstance() on the Binder Key returns the provided imstance. Sets type to Value. | |
IInjectionBinding | SetValue (object o) |
Map the Binding to a stated instance so that every GetInstance() on the Binder Key returns the provided imstance. Does not set type. | |
IInjectionBinding | CrossContext () |
Map the binding and give access to all contexts in hierarchy. | |
new IInjectionBinding | Bind< T > () |
Bind is the same as Key, but permits Binder syntax: Bind<T>().Bind<T>() | |
new IInjectionBinding | Bind (object key) |
Bind is the same as Key, but permits Binder syntax: Bind<T>().Bind<T>() | |
new IInjectionBinding | To< T > () |
Set the Binding's value to a Type. | |
new IInjectionBinding | To (object o) |
Set the Binding's value to a value, such as a string or class instance. | |
new IInjectionBinding | ToName< T > () |
Qualify a binding using a marker type. | |
new IInjectionBinding | ToName (object o) |
Qualify a binding using a value, such as a string or class instance. | |
new IInjectionBinding | Named< T > () |
Retrieve a binding if the supplied name matches, by Type. | |
new IInjectionBinding | Named (object o) |
Retrieve a binding if the supplied name matches, by value. | |
Public Member Functions inherited from strange.framework.impl.Binding | |
Binding (Binder.BindingResolver resolver) | |
virtual void | RemoveKey (object o) |
Remove a specific key from the binding. | |
virtual void | RemoveValue (object o) |
Remove a specific value from the binding. | |
virtual void | RemoveName (object o) |
Remove a name from the binding. | |
virtual IBinding | Weak () |
Protected Member Functions | |
bool | HasGenericAssignableFrom (Type keyType, Type objType) |
bool | IsGenericTypeAssignable (Type givenType, Type genericType) |
Properties | |
InjectionBindingType | type [get, set] |
bool | toInject [get] |
bool | isCrossContext [get] |
Properties inherited from strange.framework.impl.Binding | |
object | key [get] |
object | value [get] |
object | name [get] |
Enum | keyConstraint [get, set] |
Enum | valueConstraint [get, set] |
Enum | nameConstraint [get, set] |
bool | isWeak [get] |
Properties inherited from strange.framework.api.IBinding | |
object | key [get] |
Get the binding''s key. | |
object | name [get] |
Get the binding's name. | |
object | value [get] |
Get the binding's value. | |
Enum | keyConstraint [get, set] |
Get or set a MANY or ONE constraint on the Key. | |
Enum | valueConstraint [get, set] |
Get or set a MANY or ONE constraint on the Value. | |
bool | isWeak [get] |
Properties inherited from strange.extensions.injector.api.IInjectionBinding | |
bool | isCrossContext [get] |
bool | toInject [get] |
Get the parameter that specifies whether this Binding allows an instance to be injected. | |
InjectionBindingType | type [get, set] |
Get and set the InjectionBindingType. More... | |
new object | key [get] |
new object | name [get] |
new object | value [get] |
new Enum | keyConstraint [get, set] |
new Enum | valueConstraint [get, set] |
Additional Inherited Members | |
Public Attributes inherited from strange.framework.impl.Binding | |
Binder.BindingResolver | resolver |
Protected Attributes inherited from strange.framework.impl.Binding | |
ISemiBinding | _key |
ISemiBinding | _value |
ISemiBinding | _name |
bool | _isWeak = false |
The Binding for Injections.