type

HxServiceRegistry

const mixin HxServiceRegistry : HxStdServices

Registry for service APIs by type. Service APIs implement the HxService mixin and are published by libraries enabled in the runtime using HxLib.services.

methods

get

Lookup a service installed for the given type.

getAll

Lookup all services installed for the given type.

list

List the registered service types

Slot Details

get

abstract HxService? get(Type type, Bool checked := true)

Lookup a service installed for the given type. If multiple services are installed for the given type, then its indeterminate which is returned. If the service is not found then raise UnknownServiceErr or return null based on the check flag.

getAll

abstract HxService[] getAll(Type type)

Lookup all services installed for the given type. Return an empty list if no services are registered for given type.

list

abstract Type[] list()

List the registered service types