classafIoc::ServiceDefinitionOptions

sys::Obj
  afIoc::ServiceDefinitionOptions

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

@since 2.0.0

withCtorArgs

Source

This withCtorArgs(Obj?[] ctorArgs)

Passed as args to the service ctor. The args must be immutable.

withFieldVals

Source

This withFieldVals([Field:Obj?]? fieldVals)

Field values to set in the service impl. An alternative to using ctor args. All vals must be immutable.

withId

Source

This withId(Str id)

Sets the service id.

withImplId

Source

This withImplId()

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.