Re: Custom implementation of the EventBus
Well, I can come with number of reasons. The first one is that the whole "firing depth" implementation does not work for me. Another reason could be that one may want to have an event bus that talks to the server as well. In other words there are might be a number of reasons the one would have to do a custom event bus. Right now, the only way to do this is to use the same package. It works but from a OO perspective it may not be the best approach. - Stefan B On Aug 29, 6:32 pm, Stefan Ollinger wrote: > Why do you want to create your own event bus? > -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Custom implementation of the EventBus
On 29 August 2011 15:32, Stefan Ollinger wrote: > Why do you want to create your own event bus? Read my email and the discussion that your namesake linked to. > Am 29.08.2011 22:21, schrieb Hilco Wijbenga: >> >> On 29 August 2011 13:03, Stefan wrote: >>> >>> Hello Everybody >>> >>> From what I see the application developer is not suppose to be able to >>> create a custom implementation of the EventBus type. The main reasons >>> are the protected void dispatch(H handler) and packaged void >>> setSource(Object source) methods of the GwtEvent type. What is the >>> rational behind this? After all do you expect the default >>> implementation SimpleEventBus to be sufficient for everybody ? >> >> If you use the same package as SimpleEventBus then you should be fine. >> That's what I did anyway and it's working well. So I guess the current >> SimpleEventBus does not work for everybody. I.e., until somebody can >> explain to me how I'm using events incorrectly and why this >> firingDepth thing is necessary/useful. :-) >> >>> A somewhat related discussion >>> >>> http://groups.google.com/group/google-web-toolkit/browse_frm/thread/1626a088f0d09ffc/335d4ff7202bb2e4?tvc=1&q=SimpleEventBus#335d4ff7202bb2e4 >>> >>> >>> Thanks >>> Stefan >>> >>> -- >>> 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+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://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 google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://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 google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Custom implementation of the EventBus
Why do you want to create your own event bus? Am 29.08.2011 22:21, schrieb Hilco Wijbenga: On 29 August 2011 13:03, Stefan wrote: Hello Everybody From what I see the application developer is not suppose to be able to create a custom implementation of the EventBus type. The main reasons are the protected void dispatch(H handler) and packaged void setSource(Object source) methods of the GwtEvent type. What is the rational behind this? After all do you expect the default implementation SimpleEventBus to be sufficient for everybody ? If you use the same package as SimpleEventBus then you should be fine. That's what I did anyway and it's working well. So I guess the current SimpleEventBus does not work for everybody. I.e., until somebody can explain to me how I'm using events incorrectly and why this firingDepth thing is necessary/useful. :-) A somewhat related discussion http://groups.google.com/group/google-web-toolkit/browse_frm/thread/1626a088f0d09ffc/335d4ff7202bb2e4?tvc=1&q=SimpleEventBus#335d4ff7202bb2e4 Thanks Stefan -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://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 google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Custom implementation of the EventBus
On 29 August 2011 13:03, Stefan wrote: > Hello Everybody > > From what I see the application developer is not suppose to be able to > create a custom implementation of the EventBus type. The main reasons > are the protected void dispatch(H handler) and packaged void > setSource(Object source) methods of the GwtEvent type. What is the > rational behind this? After all do you expect the default > implementation SimpleEventBus to be sufficient for everybody ? If you use the same package as SimpleEventBus then you should be fine. That's what I did anyway and it's working well. So I guess the current SimpleEventBus does not work for everybody. I.e., until somebody can explain to me how I'm using events incorrectly and why this firingDepth thing is necessary/useful. :-) > A somewhat related discussion > http://groups.google.com/group/google-web-toolkit/browse_frm/thread/1626a088f0d09ffc/335d4ff7202bb2e4?tvc=1&q=SimpleEventBus#335d4ff7202bb2e4 > > > Thanks > Stefan > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://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 google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Custom implementation of the EventBus
Hello Everybody >From what I see the application developer is not suppose to be able to create a custom implementation of the EventBus type. The main reasons are the protected void dispatch(H handler) and packaged void setSource(Object source) methods of the GwtEvent type. What is the rational behind this? After all do you expect the default implementation SimpleEventBus to be sufficient for everybody ? A somewhat related discussion http://groups.google.com/group/google-web-toolkit/browse_frm/thread/1626a088f0d09ffc/335d4ff7202bb2e4?tvc=1&q=SimpleEventBus#335d4ff7202bb2e4 Thanks Stefan -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.