const classafIoc::IocService

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

Wraps an afIoc Registry instance as Fantom service.

A Service for all Services!

addModules

Source

This addModules(Type[] moduleTypes)

addModulesFromDependencies

Source

This addModulesFromDependencies(Pod dependenciesOf)

addModulesFromIndexProperties

Source

This addModulesFromIndexProperties()

autobuild

Source

Obj autobuild(Type type)

Convenience for Registry.autobuild

dependencyByType

Source

Obj dependencyByType(Type serviceType)

injectIntoFields

Source

Obj injectIntoFields(Obj service)

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.

registry

Source

Registry? registry { private set }

serviceById

Source

Obj serviceById(Str serviceId)

Convenience for Registry.serviceById