Constructors

IoCContainer()

factory

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

apply(IoCContainer other) IoCContainer

Combines all bindings from the other container with this one's, and returns a new instance that combines the bindings. The bindings in other takes precedence.

bind(Type type, {to}) IoCContainer

Returns a copy of the container, with an implementation of a type bound. Subsequent requests for injections of the type will be provided the to value.

bindName(String name, {to}) IoCContainer

Acts like bind, but instead of binding to a specific type request, it gets bound to named parameters with this name.

curry(Function function) → Function

Returns a lazily resolved version of function, injecting the arguments passed in to the curried function into the original function by their type.

decorate(Type type, {Type withDecorator}) IoCContainer

Returns a copy of the container, with a decorator for this type bound.

make(Type type) → dynamic

Creates a new instance of the provided type, resolving the constructor parameters automatically.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
resolve(Function function) → dynamic

Finds all parameters in a function and injects the dependencies automatically.

toString() → String

Returns a string representation of this object.

inherited