mixinafIoc::ServiceBindingOptions

afIoc::ServiceBindingOptions

Lets you specify additional options for a service, overriding defaults.

withId

Source

abstract This withId(Str id)

Sets a specific id for the service, rather than the default (from the service type). This is useful when multiple services implement the same mixin, since service ids must be unique.

withScope

Source

abstract This withScope(ServiceScope scope)

Sets the service scope. Note only const classes can be defined as ServiceScope.perApplication. (Tip: const services can subclass ConcurrentState for easy access to modifiable state.)

withSimpleId

Source

abstract This withSimpleId()

Uses the the simple (unqualified) class name of the implementation class as the service id.

withoutProxy

Source

abstract This withoutProxy()

Disables the creation of a service proxy. Only applicable if the service is fronted by a mixin.