How to "manually" instantiate ValueProxy/EntityProxy instances in order to broadcast notifications?

67 views
Skip to first unread message

Yaya @ work

unread,
Jan 21, 2012, 8:22:28 AM1/21/12
to google-we...@googlegroups.com
Hi !

As many others, I'm trying to palliate the understandable "limitation" that entity change events one can subscribe to with EntityProxyChange.registerForProxyType(...) won't include notifications for changes made by other clients, including non GWT ones. (Which is obviously beyond GWT's control and scope.)
As such, I would like all clients to be able to subscribe to system wide entity change notifications, which would be pushed (most likely) by Atmosphere.
As client code is handling EntityProxy or ValueProxy instances, I wish these notifications could convey similar objects.
Unfortunately, I haven't found an obvious way (or, at least, obvious enough for me ;-)) to explicitly "instantiate" Entity/Value Proxies from corresponding entities.
The RequestFactory code that perform such instantiation/conversion seems to be quite tight to RequestState, Resolver & co, which are package protected.
Would anyone know of a way to do so ?

Thanks in advance for your insights,
          Yannis

Ignacio Baca Moreno-Torres

unread,
May 23, 2012, 2:58:09 PM5/23/12
to google-we...@googlegroups.com
I am also interested in this info! But I am not sure if manually instantiation is the best solution. If you receive a notification about some entity been updated in the server side, through atmosphere for example, you send a find(EntityProxyId) to request the real data, isnt it? 
Reply all
Reply to author
Forward
0 new messages