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

Source

This addModule(Type moduleType)

Adds a module to the registry

addModules

Source

This addModules(Type[] moduleTypes)

Adds many modules to the registry

addModulesFromDependencies

Source

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

Source

This addModulesFromIndexProperties()

Looks for all index properties of the key afIoc.module which defines a qualified name of a module to load.

build

Source

Registry build()

Constructs and returns the registry; this may only be done once. The caller is responsible for invoking Registry.startup

make

Source

new make()