Sunday, August 1, 2010

Re: One v.s N EventBus

I have the same problem. I am now using the mvp framework of GWT 2.1.0
m2. My application has several modules, and in each module, it may
have different layout. Hence I have multiple level of Activity and in
each module, I have an ActivityManager and ActivityMapper to create an
appropriate Activity according to the Place or return null if not
interested. All the ActivityManagers are attached to a global Event
bus.

For this reason, I have to create all the modules (hence all the
ActivityManager) at the application startup such that it can attach to
the event bus and listen to the Place change events. Thats fine for a
small app and works quite well, but what if the app gets larger and
more levels ? I am now thinking of multiple event bus. When a
module is created, it will forward the Place to the next level
ActivityManager.

Any ideas ?

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate