dependencies library

Dependency injection container for dart.

Classes

Binder
Represents an object able to bind instances to the dependency injection container.
Binding<T>
Represents an factory of singleton binding kept by an Injector.
Configurer
Represents an object able to configure bindings.
FactoryBinding<T>
Represents a factory Binding
Injector
Dependency injection container.
InjectorBuilder
Builder to create Injector instances.
InjectorMixin
Utility to get the default injector from the registry.
InjectorRegistry
Dependency injection container static factory.
Installer
Represents an object able to install dependencies in a Configurer.
InstanceBinding<T>
Represents a Binding containing an instance.
LazySingletonBinding<T>
Represents a lazy singleton Binding.
Module
A module to configure injection bindings.
ObjectFactoryBinding<T>
Represents a Binding containing an object factory.
Params
Represents the optional params which can be passed to the Injector to build dependencies.
ParamsBuilder
Used to create a Params instance.
SingletonBinding<T>
Represents a Singleton Binding

Typedefs

BindFunc(Binder binder) → void
A function used to add the bindings to an Injector.
ObjectFactory<T>(Injector injector, Params params) → T
Represents a factory able to create instances of type T.

Exceptions / Errors

InjectionException
ParamException