const classafIoc::StrategyRegistry
sys::Obj afIoc::StrategyRegistry
A helper class that looks up Objs via Type inheritance search.
- clearCache
Void clearCache()
Clears the lookup cache
- findBestFit
Obj? findBestFit(Type bestFit, Bool checked := true)
Returns the Obj whose mapped Type most closely fits the given param.
- findExactMatch
Obj? findExactMatch(Type exact, Bool checked := true)
Standard Map behaviour - looks up an Obj via the type.
- make
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.