Module poodinis.registration
This module contains objects for defining and scoping dependency registrations.
Part of the Poodinis Dependency Injection framework.
Functions
Name | Description |
---|---|
existingInstance(registration, instance)
|
Scopes registrations to return the given instance every time the given registration is resolved. |
initializedBy(registration, initializer)
|
Scopes registrations to create new instances using the given initializer delegate. |
initializedOnceBy(registration, initializer)
|
Scopes registrations to create a new instance using the given initializer delegate. On subsequent resolves the same instance is returned. |
initializeFactoryType(registration)
|
Sets the registration's instance factory type the same as the registration's. |
newInstance(registration)
|
Scopes registrations to return a new instance every time the given registration is resolved. |
singleInstance(registration)
|
Scopes registrations to return the same instance every time a given registration is resolved. |