const classafIoc::StrategyRegistry

sys::Obj
  afIoc::StrategyRegistry

A helper class that looks up Objs via Type inheritance search.

clearCache

Source

Void clearCache()

Clears the lookup cache

findBestFit

Source

Obj? findBestFit(Type bestFit, Bool checked := true)

Returns the Obj whose mapped Type most closely fits the given param.

findExactMatch

Source

Obj? findExactMatch(Type exact, Bool checked := true)

Standard Map behaviour - looks up an Obj via the type.

make

Source

new make(Type:Obj? values)

Creates an StrategyRegistry with the given list. All types are coerced to non-nullable types. An Err is thrown if a duplicate is found in the process.