poodinis.autowire

Contains functionality for autowiring dependencies using a dependency container.

This module is used in a dependency container for autowiring dependencies when resolving them. You typically only need this module if you want inject dependencies into a class instance not managed by a dependency container.

Part of the Poodinis Dependency Injection framework.

Members

Classes

AutowireInstantiationContext
class AutowireInstantiationContext
Undocumented in source.
AutowiredRegistration
class AutowiredRegistration(RegistrationType : Object)
Undocumented in source.

Functions

autowire
void autowire(shared(DependencyContainer) container, Type instance)

Autowires members of a given instance using dependencies registered in the given container.

globalAutowire
deprecated void globalAutowire(Type instance)

Autowire the given instance using the globally available dependency container.

Structs

AssignNewInstance
struct AssignNewInstance

UDA for annotating class members to be autowired with a new instance regardless of their registration scope.

Autowire
struct Autowire(QualifierType)

UDA for annotating class members as candidates for autowiring.

OptionalDependency
struct OptionalDependency

UDA for marking autowired dependencies optional. Optional dependencies will not lead to a resolveException when there is no type registered for them. The member will remain null.

Meta

Authors

Mike Bierlee, m.bierlee@lostmoment.com

License

This software is licensed under the terms of the MIT license. The full terms of the license can be found in the LICENSE file.