helun/Ektorp — pull request #111 by edwag (2013-03-21 12:08:01+00:00)
Title: Add support for retrieving the set of active tasks.

There's some slight nastiness here in StdCouchDbInstance.getActiveTasks. There's an ActiveTask interface and a StdActiveTask abstract class. The return type of getActiveTasks is Collection\ but within the method we build a List\, so we have to copy that list to a List\ before we can return it. We have to use StdActiveTask rather than ActiveTask to do deserialization properly.

Other possible ways to go about this:

1. Make the return type Collection\ instead. If we do this, we can no longer write Collection foo = dbInstance.getActiveTasks();

2. Get ride of the ActiveTask interface and just have StdActiveTask