mixinafIoc::ServiceBindingOptions
afIoc::ServiceBindingOptions
Lets you specify additional options for a service, overriding defaults.
- withId
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
abstract This withScope(ServiceScope scope)Sets the service scope. Note only
constclasses can be defined as ServiceScope.perApplication. (Tip:constservices can subclass ConcurrentState for easy access to modifiable state.)- withSimpleId
abstract This withSimpleId()Uses the the simple (unqualified) class name of the implementation class as the service id.
- withoutProxy
abstract This withoutProxy()Disables the creation of a service proxy. Only applicable if the service is fronted by a mixin.