RE: (Fwd) RE: Re: [Rcosjava-general] messaging system
Status: Beta
Brought to you by:
newmana
From: Peggy N. <pe...@ip...> - 2001-12-02 22:42:45
|
Hi Andrew, Doh! I'd forgotten to follow up that AddHandler message to look for an answer. I think I tried to block it out from my mind, being one of the messages I traced through while trying to understand messaging, without any luck. That makes complete sense, to register from the OSMsgHandler constructor. Thanks. Regards, Peggy > I hope I'm following what you want. You're wondering how an OS or > Animator level object registers with their PostOffice. That is, how > does it end up in the registeredHandlers TreeMap and receive messages > to process. > > For example, the Kernel calls super(String, OSOffice). > OSMessageHandler creates a new AddHandler message and calls > processMessage on the OSOffice. AddHandler calls the addHandler > method on PostOffice (which actually is found in > SimpleMessageHandler). This adds the Kernel to registeredHandlers. > > Animators do the same thing except using AnimatorMessageHandler and > AnimatorOffice. > > The stuff that is confusing is the constructor in PostOffice. For > example, type (the class name) is not used by anything but exists > there. -- > > > > > __________________________________________________________________ > Your favorite stores, helpful shopping tools and great gift ideas. > Experience the convenience of buying online with Shop@Netscape! > http://shopnow.netscape.com/ > > Get your own FREE, personal Netscape Mail account today at > http://webmail.netscape.com/ > > > _______________________________________________ > Rcosjava-general mailing list > Rco...@li... > https://lists.sourceforge.net/lists/listinfo/rcosjava-general |