cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TonyTheFish <>
Subject Is it possible to use polymorphic types in a REST endpoint?
Date Tue, 22 Jan 2008 17:49:36 GMT

I am working on a proof of concept application that uses cxf and jaxb.  What
I want to do is feed parameters of type FooA, FooB, FooC to an endpoint that
accepts Foo (superclass) objects.  Something like this:

	public Response addFoo(Foo foo) { ... stuff ... }

No matter how I manipulate the jaxb annotations on the Foo hierarchy I
cannot persuade addFoo() to accept a FooA object.  Is this even possible?

View this message in context:
Sent from the cxf-dev mailing list archive at

View raw message