Ini.Section.as(Bean.class) should instantiate java beans
Brought to you by:
szkiba
Ini.Section.as(Bean.class) fails with IllegalArgumentException "Bean is not an interface".
BasicOptionMap.as(...)/BeanTool.proxy(...) should distinguish between class and interface instead. It should instantiate class (with no-args constructor) and fill it(with BeanTools.inject(...)) or generate proxy for interface. Instantiated/generated objects should be scoped in Ini context and reused.