dango.inject.provider

Contains the implementation of the provider.

Members

Classes

AdditionalReport
class AdditionalReport
Undocumented in source.
BaseReport
class BaseReport
Undocumented in source.
ClassProvider
class ClassProvider(I, T : I)

A Provider that instantiates instances of a class.

ErrorReport
class ErrorReport
Undocumented in source.
ExistingInstanceProvider
class ExistingInstanceProvider(I)

A Provider that uses another provider to existing instance

FactoryProvider
class FactoryProvider(F : ComponentFactory!(T, A), T, A...)

A provider that uses a factory to get the value.

LaserPrinter
class LaserPrinter
Undocumented in source.
Registration
class Registration

Dependency registration

SimpleReport
class SimpleReport
Undocumented in source.
SingletonProvider
class SingletonProvider

A Provider that uses another provider to create an instance the first time provide is called. Future calls to provide will return this same instance.

ValueProvider
class ValueProvider(T)

A Provider that provides a value. The value is provided at construction type and the same value is returned each time provide is called.

Functions

existingInstance
Registration existingInstance(Registration registration, T instance)

Scopes registrations to return the given instance every time the given registration is resolved.

newInstance
Registration newInstance(Registration registration)

Scopes registrations to return a new instance every time the given registration is resolved.

singleInstance
Registration singleInstance(Registration registration)

Scopes registrations to return the same instance every time a given registration is resolved.

Interfaces

Printer
interface Printer
Undocumented in source.
Provider
interface Provider

Interface for a provider for dependency injection. A provider knows about the type it produces, and can produce a value.

Report
interface Report
Undocumented in source.

Structs

Page
struct Page
Undocumented in source.

Meta

Date

Date: 2020-04-11

License

Subject to the terms of the BSD 3-Clause License, as written in the included LICENSE.md file.

Authors

<m.galanin@milofon.pro> Maksim Galanin