enum classafIoc::ServiceProxy
sys::Obj sys::Enum afIoc::ServiceProxy
@
Serializable { simple=true }
Proxy strategies for Services.
@since 2.0.0
- always
const static ServiceProxy always := ...
Always create a proxy for the service.
- fromStr
static new fromStr(Str name, Bool checked := true)
Return the ServiceProxy instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.
- ifRequired
const static ServiceProxy ifRequired := ...
Only create a proxy when absolutely necessary:
- when the service is being advised
- when thread scoped and being injected into an app scoped service
- never
const static ServiceProxy never := ...
Never create a proxy for the service.
- vals
const static ServiceProxy[] vals := ...
List of ServiceProxy values indexed by ordinal