const classafIoc::IocService
sys::Obj afIoc::IocService : sys::Service
Wraps an afIoc Registry instance as Fantom service.
A Service for all Services!
- addModules
This addModules(Type[] moduleTypes)
Convenience for RegistryBuilder.addModules
- addModulesFromDependencies
This addModulesFromDependencies(Pod dependenciesOf)
Convenience for RegistryBuilder.addModulesFromDependencies
- addModulesFromIndexProperties
This addModulesFromIndexProperties()
Convenience for RegistryBuilder.addModulesFromIndexProperties
- autobuild
Convenience for Registry.autobuild
- dependencyByType
Obj dependencyByType(Type serviceType)
Convenience for Registry.dependencyByType
- injectIntoFields
Obj injectIntoFields(Obj service)
Convenience for Registry.injectIntoFields
- make
new make(Type[] moduleTypes := (Type[])[,])
- onStart
virtual override Void onStart()
Builds and starts up the registry. See RegistryBuilder.build. See Registry.startup.
- onStop
virtual override Void onStop()
Shuts down the registry. See Registry.shutdown.
- registry
Registry? registry { private set }
- serviceById
Obj serviceById(Str serviceId)
Convenience for Registry.serviceById