[Seaside] Announcement or simple method call (Command Pattern)

Oleg Richards orichards at mail.ru
Mon Jan 14 08:16:18 UTC 2008


Hello Guys!

I want to use command pattern in my application and use announcements
framework to invoke the same command in the same component from different
places. Now it was done using simple method call. How do u think: Should i
refactor my application to "command pattern"?

I'm afraid of one thing: For example one my component will subscribe to
special command. When this component will be visible this is perfect. But
what will be done if this component call another one, so it will be not
visible, but not destroyed because it will be standing in stack of
backtrace. Is it a danger? I dont want him to receive this message, when it
is not active. And i also don't want to unsubscribe from event in every call
procedure..

What do you think?

Cheers, Oleg
-- 
View this message in context: http://www.nabble.com/Announcement-or-simple-method-call-%28Command-Pattern%29-tp14796959p14796959.html
Sent from the Squeak - Seaside mailing list archive at Nabble.com.



More information about the seaside mailing list