abstract class
Di::Provider::Base
- Di::Provider::Base
- Reference
- Object
Overview
Abstract base for type-erased provider storage in the registry. Only includes methods that don't need type info.
Direct Known Subclasses
Defined in:
di/provider.crInstance Method Summary
-
#check_health : Bool | Nil
Attempt to call .healthy? on the cached instance.
-
#key=(key : String)
Registry key for cycle detection (set by register_provider).
- #reset! : Nil
-
#shutdown_instance : Nil
Attempt to call .shutdown on the cached instance (if any).
- #transient? : Bool
Instance Method Detail
def check_health : Bool | Nil
#
Attempt to call .healthy? on the cached instance. Returns nil if not resolved, transient, or service doesn't respond.
def shutdown_instance : Nil
#
Attempt to call .shutdown on the cached instance (if any). No-op for transient providers or unresolved singletons.