classafIoc::OrderedConfig

sys::Obj
  afIoc::OrderedConfig

This is passed into module contribution methods to allow the method to, err, contribute!

A service can collect contributions in three different ways:

  • As an unordered list of values
  • As an ordered list of values
  • As a map of keys and values

The service defines the type of contribution by declaring a parameterised list or map in its ctor or builder method. Contributions must be compatible with the type.

addUnordered

Source

Void addUnordered(Obj object)

Adds an unordered object to a service's configuration.

addUnorderedAll

Source

Void addUnorderedAll(Obj[] objects)

Adds all the unordered objects to a service's configuration.

autobuild

Source

Obj autobuild(Type type)

A util method to instantiate an object, injecting any dependencies. See Registry.autobuild.

toStr

Source

virtual override Str toStr()