Returns True if services have been wired; otherwise False.
services(self) -> IEngine.Services (property)
Returns the wired service container.
Asserts if services are not wired.
Configuration/Dependencies
Type dependency (for typing only): naas_abi_core.engine.IEngine.IEngine, specifically IEngine.Services.
No runtime imports required for IEngine due to TYPE_CHECKING.
Usage
from naas_abi_core.services.ServiceBase import ServiceBasesvc = ServiceBase()print(svc.services_wired) # False# In real usage, `engine_services` should be an instance of IEngine.Services.engine_services = object() # placeholder for example purposessvc.set_services(engine_services)print(svc.services_wired) # Trueprint(svc.services) # returns engine_services
Caveats
Accessing services before calling set_services(...) triggers an AssertionError with message "Services are not wired".