rty, google 'singleton pattern'. if it's not that, then i don't understand what you are missing.
walden On Sep 30, 10:06 am, "sumanth s" <[EMAIL PROTECTED]> wrote: > Hi walden > > thanks for ur reply. Your are saying It is the layer into which you make > all RPC calls.so what you are saying is every RPC call from client class > will go first to this so called proxy class before calling implementation > class..is it right? How did u do that?How can u call a common class from all > the client classes? This is what I need to do in my project.I need to call > one common class which inturn should call the specific implementation > classes. > > Thanks in advance > rty > > > > On Tue, Sep 30, 2008 at 7:38 AM, walden <[EMAIL PROTECTED]> wrote: > > > In my project, I have my own data proxy class that behaves pretty much > > like what you describe. It's a singleton that proxies all requests to > > the actual RPC (generated) proxy. It is the layer into which I make > > all RPC calls. It performs caching and notification for certain data > > queries. It supports a 'reference data set', which is expected to be > > static for the duration of a client session, which is retrieved once > > and cached. It has the ability to register listeners on certain data > > sets (including the refrence data), and will invoke their callbacks > > whenever that set gets refreshed from the server. Is this what you > > had in mind? > > > BTW, Remember that after your code is compiled by the GWT compiler, > > it's not Java, and so Java class loading is the wrong paradigm. > > > Walden > > > On Sep 29, 4:40 pm, rty <[EMAIL PROTECTED]> wrote: > > > Hi > > > > I want to write one common class which does some startup things for my > > > project.I want to make sure that class is loaded first and all the gwt > > > rpc calls should go through that class first. How should I proceed for > > > it. > > > > thanks > > > rty- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---