Module poodinis.registration

This module contains objects for defining and scoping dependency registrations.

Part of the Poodinis Dependency Injection framework.

Functions

NameDescription
existingInstance(registration, instance) Scopes registrations to return the given instance every time the given registration is resolved.
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.