classafIoc::ServiceDefinitionOptions

sys::Obj
  afIoc::ServiceDefinitionOptions

Returned from AppModule ServiceDefinitions methods to allow further service options to be set.

@since 2.0.0

withId

Source

This withId(Str id)

Sets the service id.

withImplId

Source

This withImplId(Str id)

Sets the service id to the qualified name of the service implementation class.

withProxy

Source

This withProxy(ServiceProxy proxy := ServiceProxy.always)

Sets the proxy strategy for the service.

withScope

Source

This withScope(ServiceScope scope)

Sets the scope of the service.