[Pharo-project] Issue 3253 in pharo: Announcer. Extraction ActionSequence creation in subscription logic

pharo at googlecode.com pharo at googlecode.com
Fri Nov 12 21:19:08 CET 2010


Status: New
Owner: ----

New issue 3253 by Dionisiygod: Announcer. Extraction ActionSequence  
creation in subscription logic
http://code.google.com/p/pharo/issues/detail?id=3253

ActionSequence creation in subscribtion logic of announcer should be  
extracted. With this little change different kind of announcing logic could  
be simple implemented (for example, asynchronous announcer with its own  
actionSequence implementation)

Announcer>>subscribe: anAnnouncementClass do: aValuable
	| actions |
	subscriptions ifNil: [ subscriptions := IdentityDictionary new ].
	actions := subscriptions at: anAnnouncementClass ifAbsent: [ self  
createActionSequence ].
	subscriptions at: anAnnouncementClass put: (actions copyWith: aValuable).
	^ aValuable

Attachments:
	Announcer-subscribedo.st  479 bytes
	Announcer-createActionSequence.st  218 bytes





More information about the Pharo-project mailing list