enum classafIoc::ServiceScope

sys::Obj
  sys::Enum
    afIoc::ServiceScope

@Serializable { simple=true }

Scope definitions for Services.

fromStr

Source

static new fromStr(Str name, Bool checked := true)

Return the ServiceScope instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

perApplication

Source

const static ServiceScope perApplication := ...

Service is a singleton, only one is ever created. This is the default for const services.

perInjection

Source

const static ServiceScope perInjection := ...

A new service is created each it is asked for. You probably do not want this! See the Autobuild facet instead.

perThread

Source

const static ServiceScope perThread := ...

Service is created once per thread. This is this default for non-const services.

vals

Source

const static ServiceScope[] vals := ...

List of ServiceScope values indexed by ordinal