enum classafIoc::ServiceProxy

sys::Obj
  sys::Enum
    afIoc::ServiceProxy

@Serializable { simple=true }

Proxy strategies for Services.

@since 2.0.0

always

Source

const static ServiceProxy always := ...

Always create a proxy for the service.

fromStr

Source

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

Source

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

Source

const static ServiceProxy never := ...

Never create a proxy for the service.

vals

Source

const static ServiceProxy[] vals := ...

List of ServiceProxy values indexed by ordinal