wireup backend¶
Wraps wireup.
Installation¶
Scope mapping¶
Scope |
wireup lifetime |
|---|---|
SINGLETON |
singleton |
TRANSIENT |
transient (requires an explicit scope to resolve — see below) |
THREAD |
Falls back to SINGLETON |
Caveats¶
- Wireup's root container cannot resolve
transientinjectables without explicit scope entry. If you register a class asTRANSIENT, you'll need toenter_scope()on the raw container to resolve it. Scope.THREADis silently mapped toSINGLETONbecause wireup has no thread-scope concept.
Overrides¶
Wireup's runtime override API is context-manager-based (temporary), so the
adapter stores persistent overrides in a local dict and checks them in
get() before delegating.