const classafIoc::IocService

sys::Obj
  afIoc::IocService : sys::Service

Wraps an IoC Registry instance as Fantom service.

The Service of Services!

addModules

Source

This addModules(Type[] moduleTypes)

addModulesFromIndexProps

Source

This addModulesFromIndexProps()

addModulesFromPod

Source

This addModulesFromPod(Str podName, Bool addDependencies := true)

autobuild

Source

Obj autobuild(Type type, Obj?[]? ctorArgs := null, [Field:Obj?]? fieldVals := null)

Convenience for Registry.autobuild

callMethod

Source

Obj? callMethod(Method method, Obj? instance, Obj?[]? providedMethodArgs := null)

Convenience for Registry.callMethod

createProxy

Source

Obj createProxy(Type mixinType, Type implType, Obj?[]? ctorArgs := null, [Field:Obj?]? fieldVals := null)

Convenience for Registry.createProxy

dependencyByType

Source

Obj dependencyByType(Type serviceType, Bool checked := true)

injectIntoFields

Source

Obj injectIntoFields(Obj instance)

make

Source

new make(Type[] moduleTypes := (Type[])[,])

onStart

Source

virtual override Void onStart()

Builds and starts up the registry. See RegistryBuilder.build. See Registry.startup.

onStop

Source

virtual override Void onStop()

Shuts down the registry. See Registry.shutdown.

options

Source

Str:Obj? options()

Convenience for RegistryBuilder.options

registry

Source

Registry? registry { private set }

serviceById

Source

Obj serviceById(Str serviceId, Bool checked := true)

Convenience for Registry.serviceById

serviceDefinitions

Source

Str:ServiceDefinition serviceDefinitions()