Injector shoult use Macro/variable substitution
Brought to you by:
szkiba
Injector with following .ini configuration
[Operation/Bypass] source = include destination = erase [Category/Test] defaultOperation = ${Operation/Bypass} flexibility = Optional
and code
class Category{ Operation defaultOperation; } // accessors omitted ini.get("Category/Test").to(new Category()); // Ini ini = new Ini("...") omitted
on resolving 'defaultOperation' property of class Category should invoke Ini.get("Operation/Bypass") instead of Operation.valueOf("${Operation/Bypass}")
Pardon, ...should invoke Ini.fetch("Operation/Bypass") instead of...