On Thu, 10 Jan 2002 20:28, Holger Faltinsky/Denic wrote: > good idea. I am also using the BlockListener and it really has reduced > features if you compare it with a block.
by design - Block listeners are not meant to have any logic in them. >The BlockEvent is great > (especially the blockAdded method) but I had problems to get a Logger and > the ComponentManager. I don't know if you have already fixed that, haven't > checked out the cvs for a while. At the moment I am using a dummy block to > get a Logger and a BlockContext. Because (in my version) the BlockListener > isn't compose-able, Listeners will probably become capable of getting loggers in the future but not a ComponentManager > so that I wait for a block coming up I need and then > just keep the block-object. Then I just have to invoke the requested > methods, that's it. Very simpel and it works perfectly. thats how it is designed to work. > How are the thoughts going on to improve the features of BlockListener? Why > not using a normal Block as BlockListener? because listeners need to be created before any blocks are so that they receive all the events and so forth. -- Cheers, Pete ------------------------------------------------------------- | Egoism is the drug that soothes the pain of stupidity. | ------------------------------------------------------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
