This example illustrates how to create and use custom collection datasource in your CUBA Application.
For the example this application fetches data about currency rates through a collection datasource from this resource.
The CurrencyRate entity contains information about conversion rate between two currencies. The entity is not stored in the database, getting data through CurrencyService.
CurrencyServiceBean implements CurrencyService, parsing JSON response of the 3rd party service into a collection of CurrencyRate entities.
CurrencyRateDatasource wraps CurrencyService into a collection datasource to be able to use CUBA's standard mechanisms. As an example, this class is specified as a datasource class in currency-screen.xml; so the main table of the screen is filled automatically according to the specified datasource .
Based on CUBA Platform 6.6.3