mixinafIoc::ServiceBindingOptions
afIoc::ServiceBindingOptions
Returned from ServiceBinder.bind()
; lets you specify additional service options. Use to override defaults.
- withId
Sets a specific id for the service, rather than the default (the qualified name of the service type / mixin). Required when you have multiple implementations of the same mixin, since service ids must be unique.
- withScope
abstract This withScope(ServiceScope scope)
Sets the service scope. Note only
const
classes can be defined as ServiceScope.perApplication.(Tip: See afConcurrent for sharing data between threads.)
- 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.