facet classafIoc::Override

sys::Obj
  afIoc::Override : sys::Facet

@Serializable

Use in AppModule classes to denote a service override method.

optional

Source

const Bool optional := false

Marks the override as optional; no Err is thrown if the service is not found.

This allows you to override services that may or may not be defined in the registry. (e.g. overriding services from optional 3rd party libraries.)

overrideId

Source

const Str? overrideId := null

An optional reference to this override, so others may override this override. 3rd party libraries should always supply an overrideId.

proxy

Source

const ServiceProxy? proxy := null

If specified this will override the service's proxy setting.

scope

Source

const ServiceScope? scope := null

If specified this will override the service's scope setting.

serviceId

Source

const Str? serviceId := null

The service Id (or override Id) to be overridden.

Use either this or serviceType, not both.

serviceType

Source

const Type? serviceType := null

The type of the service to be overridden.

Use either this or serviceId, not both.