facet classafIoc::Override
sys::Obj afIoc::Override : sys::Facet
Use in AppModule classes to override a service builder.
- aliasTypes
 const Type[]? aliasTypes := nullOverride the list of service types aliases.
- aliases
 const Str[]? aliases := nullOverride the list of service ID aliases.
- optional
 const Bool optional := falseMarks 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
 const Str? overrideId := nullAn optional reference to this override, so others may override this override. 3rd party libraries should always supply an
overrideId.- scopes
 const Str[]? scopes := nullOverride the list of scopes the service may be created in.
- serviceId
 const Str? serviceId := nullThe service Id (or override Id) to be overridden.
Use either this or
serviceType, not both.- serviceType
 const Type? serviceType := nullThe type of the service to be overridden.
Use either this or
serviceId, not both.