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.modulewhich defines the qualified name of a module to load.- addModulesFromIndexProperties
This addModulesFromIndexProperties()Looks for all index properties of the key
afIoc.modulewhich defines a qualified name of a module to load.- build
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 isfalse. For extensive debug info, use IocHelper.debugOperation().disableProxies: Bool specifies if all proxy generation for mixin fronted services should be disabled. Default isfalse.suppressStartupMsg: Bool specifies if the default (verbose) startup log message should be suppressed. Default isfalse.
- make
new make([Str:Obj]? options := null)Create a
RegistryBuilder.Builder
Optionsare reserved for future use.- moduleTypes
Type[] moduleTypes()Returns a list of modules types currently held by this builder.