Hi,
I have a problem in return a collection of objects using their interface. for example, Animal is the interface and Dog is a class. where I can only do a list of dogs like so:
interface Animal{}
class Dog implements Animal{}
@GET
@Path("test")
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public JResponse<List<Dog>> getDogs(){...List<Dog> dogs = new ArrayList<Dog>();
...
return JResponse.ok(dogs).build();}
but I can't return a list of Animal, if:
Is it possible in JAXB?
Brendan