Menu

#55 Ini.Section.as(Bean.class) should instantiate java beans

v1.0 (example)
open
nobody
None
5
2021-10-30
2021-10-30
No

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.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB