StrangeIoC  0.6.0
The IoC/Binding Framework for Unity3D and C#
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Classes | Enumerations
Package strange.extensions.injector.api

Classes

interface  ICrossContextInjectionBinder
 
interface  IInjectionBinder
 A Binder that implements Dependency Injection in StrangeIoC. More...
 
interface  IInjectionBinding
 The Binding form for the Injection system. More...
 
interface  IInjector
 Interface for the Injector, which dependencies into provided instances. More...
 
interface  IInjectorFactory
 Interface for the Factory that instantiates all instances. More...
 
class  CrossContextInjectionBinder
 A special version of InjectionBinder that allows shared injections across multiple Contexts. More...
 

Enumerations

enum  InjectionBindingScope { InjectionBindingScope.SINGLE_CONTEXT, InjectionBindingScope.CROSS_CONTEXT }
 
enum  InjectionBindingType { InjectionBindingType.DEFAULT, InjectionBindingType.SINGLETON, InjectionBindingType.VALUE }
 
enum  InjectionExceptionType {
  InjectionExceptionType.CIRCULAR_DEPENDENCY, InjectionExceptionType.ILLEGAL_BINDING_VALUE, InjectionExceptionType.NO_BINDER, InjectionExceptionType.NO_REFLECTOR,
  InjectionExceptionType.NO_FACTORY, InjectionExceptionType.NOT_INSTANTIABLE, InjectionExceptionType.NULL_BINDING, InjectionExceptionType.NULL_CONSTRUCTOR,
  InjectionExceptionType.NULL_INJECTION_POINT, InjectionExceptionType.NULL_REFLECTION, InjectionExceptionType.NULL_TARGET, InjectionExceptionType.NULL_VALUE_INJECTION,
  InjectionExceptionType.SETTER_NAME_MISMATCH, InjectionExceptionType.MISSING_CROSS_CONTEXT_INJECTOR, IMPLICIT_BINDING_IMPLEMENTOR_DOES_NOT_IMPLEMENT_INTERFACE, IMPLICIT_BINDING_TYPE_DOES_NOT_IMPLEMENT_DESIGNATED_INTERFACE,
  UNINITIALIZED_ASSEMBLY
}
 

Enumeration Type Documentation

Enumerator
SINGLE_CONTEXT 

Scope is limited to the current Context.

CROSS_CONTEXT 

Scope is mapped across all Contexts.

Enumerator
DEFAULT 

The binding provides a new instance every time.

SINGLETON 

The binding always provides the same instance.

VALUE 

The binding always provides the same instance based on a provided value.

Enumerator
CIRCULAR_DEPENDENCY 

A circular dependency was found.

This Exception was raised to prevent a stack overflow.

ILLEGAL_BINDING_VALUE 

The value of a binding does not extend or implement the binding type.

NO_BINDER 

No InjectionBinder found.

NO_REFLECTOR 

No ReflectionBinder found.

NO_FACTORY 

No InjectorFactory found.

NOT_INSTANTIABLE 

The provided binding is not an instantiable class.

NULL_BINDING 

The requested Binding was null or couldn't be found.

NULL_CONSTRUCTOR 

During an attempt to construct, no constructor was found.

NULL_INJECTION_POINT 

During setter injection the requested setter resolved to null.

NULL_REFLECTION 

No reflection was provided for the requested class.

NULL_TARGET 

The instance being injected into resolved to null.

NULL_VALUE_INJECTION 

The value being injected into the target resolved to null.

SETTER_NAME_MISMATCH 

The list of setters and setter names must have exactly the same number of entries.

Two lists are required because Unity does not at present support Tuple. Seeing this error likely indicates a problem with the Reflector (it's not you, it's me).

MISSING_CROSS_CONTEXT_INJECTOR 

The requested cross-context injector returned null.