Make a factory, in the client code initialize to a client-
implementation creating factory, and on the server to a server
factory.

Note that to pass it through RPC you'll need to use/convert to the
client side class.

On May 5, 8:59 am, stingermn <[email protected]> wrote:
> I have an interface, XYZ, which is implemented on the client side as
> class ClientXYZ and on the server side as class ServerXYZ.  I would
> like to have a common utility method, getXYZ(), which can be called
> from both client and server and will return either ClientXYZ or
> ServerXYZ depending on if the method is invoked on the client or
> server side.  Does anyone know if this is possible?  Thanks.

-- 
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