Dear GWT Community,

I am currently testing the RequestFactory framework in my current
project. My question pertains to the domain objects that sit on the
server folder of my gwt project and how I can best expose them to my
client. I am trying to reuse one of my java libraries (I checked my
classes were properly JRE emulated) that is made up of a spec (a set
of interfaces) and an implementation (concrete classes implementing my
interfaces). I would like to understand whether I can reference
interfaces on my proxy classes (in the client folder) as opposed to
concrete classes.

For example, I've got an Order interface and an OrderImpl
implementation. I would like my proxy objects OrderProxy (sitting in
the client folder of my project) to only know about the Order
interface. Of course on the server the OrderLocator instantiates
OrderImpl returned as Order. I wasn't successfull so far, and it seems
that GWT RequestFactory works only with concrete types during the
serialization/deserialization process: it seems it is trying to
restore an OrderImpl where I would expect to receive an Order, hence
the run time errors I'm getting with this approach.

I don't feel like rewriting my libraries to make them work with GWT
RequestFactory, and would really like to understand whether their is
an approach that could be used in this situation.

Thanks for any info/inputs your may have on this topic,

Regards,
Frédéric

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to