Skip to content

Interface: ICapabilityBasedService

Makaio Framework


Makaio Framework / contracts / ICapabilityBasedService

Defined in: ../../../packages/contracts/src/capability/types.ts:31

Interface for capability-based services that can be auto-wired by the runtime.

Services implementing this interface can be registered declaratively and the runtime will handle initialization and shutdown automatically.

readonly capabilityId: string

Defined in: ../../../packages/contracts/src/capability/types.ts:33

The capability ID this service handles

destroy(): void | Promise<void>

Defined in: ../../../packages/contracts/src/capability/types.ts:37

Destroy the service and cleanup handlers. Async teardown is allowed.

void | Promise<void>


init(): Promise<void>

Defined in: ../../../packages/contracts/src/capability/types.ts:35

Initialize the service and register bus handlers

Promise<void>