mixinafIoc::ServiceBindingOptions

afIoc::ServiceBindingOptions

Returned from AppModule.bind() methods; lets you specify additional service options. Use to override defaults.

withId

Source

abstract This withId(Str id)

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

Source

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

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.