Hi,

class X
{
  static public XYZ xyz;
}

put on server side X.xyz = new ServerXYZ()
put on client side X.xyz = new ClientXYZ()

When you prefer an accessor, just do it

Stefan Bachert
 http://gwtworld.de

On 5 Mai, 16:59, 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 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

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