classafIoc::ServiceDefinitionOptions
sys::Obj afIoc::ServiceDefinitionOptions
Returned from AppModule ServiceDefinitions methods to allow further service options to be set.
@since 2.0.0
- withCtorArgs
This withCtorArgs(Obj?[] ctorArgs)Passed as args to the service ctor. The args must be immutable.
- withFieldVals
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
Sets the service id.
- withImplId
This withImplId()Sets the service id to the qualified name of the service implementation class.
- withProxy
This withProxy(ServiceProxy proxy := ServiceProxy.always)Sets the proxy strategy for the service.
- withScope
This withScope(ServiceScope scope)Sets the scope of the service.