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([Str:Obj?]? options := null)

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

Options are passed to the registry to specify extra behaviour:

  • logServiceCreation: Bool specifies if each service creation should be logged to INFO. Default is false. For extensive debug info, use IocHelper.debugOperation().
  • disableProxies: Bool specifies if all proxy generation for mixin fronted services should be disabled. Default is false.
  • suppressStartupMsg: Bool specifies if the default (verbose) startup log message should be suppressed. Default is false.
make

Source

new make([Str:Obj]? options := null)

Create a RegistryBuilder.

Builder Options are reserved for future use.

moduleTypes

Source

Type[] moduleTypes()

Returns a list of modules types currently held by this builder.