Title: CoreHub: yet another attempt at a Pipes alternative Post by: tinwatchman on April 09, 2012, 08:34:41 So CoreHub is an attempt to combine features from both Pipes and LICS (http://forums.puremvc.org/index.php?topic=1624.0) into a single package. To sum it up, it uses a specialized Singleton called the CoreHub to communicate between MultiCore instances with a minimum of fuss.
Public GitHub repository and download here: https://github.com/tinwatchman/CoreHub/ (https://github.com/tinwatchman/CoreHub/) The CoreHub singleton has two methods to send messages: sendMessage and sendMessageToCore. The sendMessage method - much like sendNotification in the PureMVC facade - sends one-to-many to any currently active interested listeners, while sendMessageToCore sends a message to a single, specific Core. If that Core is not currently active - as in, if that module hasn't been loaded yet - sendMessageToCore stores the message in a queue for delivery for when the Core comes online. This allows modules to be brought up to speed on critical information immediately after being loaded. Key points:
Still working on the unit tests. Comments and suggestions on the project appreciated. In particular, I'd be very interested to hear your thoughts on this, Cliff. Especially in regards to any improvements you think could be made. Title: Re: CoreHub: yet another attempt at a Pipes alternative Post by: tinwatchman on April 09, 2012, 08:39:35 (I should add - anyone looking at the code should probably start with CoreHub.as. That's the best documented class at the moment.)
|