On Mar 4, 3:47 pm, [email protected] wrote:
> I seek clarification about the presentation on the javabeans slide.
>
> javabeans.pdf Pg:19. Title:JavaBeans Event Model
> ● Event listeners register their interest of receiving
> events to the event source
> – Event source provides the methods for event listeners to
> call for registration
>
> // Suppose in source we have pseudo-code like this:
> addListener(listener){
>         /* Is this how listeners register their interest to the source.
> However, we do not
>         * get to see this due to the 'event hanling model'.
>         */
>         registerMe(listener);
>         listeners.add(listener);
>
> }
You may think of it as this group works. You register for receiving
the discussions immediately, that is you declare your intention of
receiving the mails sent by the members of the group as soon as they
arrive to the group. What happens is that the group has a list of
members from which they are some which, as you, want to receive the
discussions immediately, so it has a list of listeners. As soon as a
mail reaches the group, the group send to the list of immediate
subscribers the mail.

Hope it is clearer now, you may also think of it as a radio emitter,
transmitter and listeners, and somewhere a press agency.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to