poodinis.context

Contains the implementation of application context setup.

Part of the Poodinis Dependency Injection framework.

Members

Classes

ApplicationContext
class ApplicationContext
Undocumented in source.

Functions

registerContext
void registerContext(shared(DependencyContainer) container)

Register dependencies through an application context.

registerContextComponents
void registerContextComponents(ApplicationContextType context, shared(DependencyContainer) container)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Component
struct Component

A component annotation is used for specifying which factory methods produce components in an application context.

Prototype
struct Prototype

Components with the prototype registration will be scoped as dependencies which will create new instances every time they are resolved. The factory method will be called repeatedly.

RegisterByType
struct RegisterByType(Type)

This annotation allows you to specify by which super type the component should be registered. This enables you to use type-qualified alternatives for dependencies.

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.