I have an API call that returns a list of items currently represented by a
domain class. Unfortunately the list method does not return all details (you
get the extra details with a separate call). When a user requests those extra
details from the domain object, they might not be initialized. What is the
proper way in jclouds to lazy load them? I can do a few different one-off
solutions but wondering what is the consistent way to handle this problem.
What I have found similar & existing currently in code is in the openstack nova
ServerApi, the list() vs listInDetail(). In this case the problem is solved by
making sure the user gets the object(s) with extra details manually. In my case
the API does not provide a way to get a collection with detailed info through a
single call, however.
Thanks!