YARG and JavaBeans

Hello All,
is it possible at the time to use JavaBeans as data source in YARG, or the data is to be stored in database and fetched via queries?

regards
Iman

1 Like

Hello.

You can register your own specific ReportDataLoader, which will get data from java beans, with the DefaultLoaderFactory class.
The only thing you should keep in mind is that ReportDataLoader returns List<Map<String, Object>> so you should convert your objects to maps, or wrap them with special maps, allowing to access object’s field values with field names (by reflection or something else).

1 Like