classafIoc::RegistryBuilder
sys::Obj afIoc::RegistryBuilder
Builds a Registry from Modules. Modules may be added manually, defined by meta-data in dependent pods or defined by index properties
- addModule
This addModule(Type moduleType)
Adds a module to the registry
- addModules
This addModules(Type[] moduleTypes)
Adds many modules to the registry
- addModulesFromDependencies
This addModulesFromDependencies(Pod pod, Bool addTransitiveDependencies := true)
Checks all dependencies of the given pod for the meta-data key
afIoc.module
which defines the qualified name of a module to load.- addModulesFromIndexProperties
This addModulesFromIndexProperties()
Looks for all index properties of the key
afIoc.module
which defines a qualified name of a module to load.- build
Registry build()
Constructs and returns the registry; this may only be done once. The caller is responsible for invoking Registry.startup
- make
new make()