When you ask such questions to yourself, look at the generated classes (pass
-gen to the DevMode or Compiler so it writes them to disk).
First, a GWT.create() always creates a new instance (it's equivalent to a
'new' with the zero-arg constructor of the replacement or generated class).
ClientBu
can i use it with my normal classes i'm looking for a way to have a
singleton class and obtain it from a shared location, said class will
contain, eventsbus,ActivityManager,ActivityMapper etc..
i also rely in many cases on static variable which are androgynous clases, i
failed to to see that press
I believe that GWT.create will by default give you back a shared single
instance.
karthik reddy wrote:
I use my Resources.java (it extends ClientBundle and holds references to
images etc) in multiple classes and in each class I would create an instance
of it class using GWT.create(Resource
I use my Resources.java (it extends ClientBundle and holds references to
images etc) in multiple classes and in each class I would create an instance
of it class using GWT.create(Resources.class)
Would making this class a singleton offer me tangible performance gains or
is it not worth the eng