Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  PureMVC Manifold / MultiCore Version / Module to Module communication with Pipes? on: July 19, 2008, 12:54:48
I have a question about Module to Module communication to Pipes. I am liking PureMVC and Pipes very much, but have some questions about how to accomplish Module to Module communication with Pipes.

I want to have a system where modules can communicate with the shell, and also with other modules. I have some general ideas about how to do this, but I want to know what is generally accepted to be the best way:

  • On module load, go through the list of modules and have the Shell JunctionMediator go through the list of modules and add one or more input and output pipes for each module in the list against the module that was just initialized. This would require making a lot of pipes for simple messaging.
  • Create a "RedirectJunction" with a "sendMessageToModule" method that sends a special message type to the shell for redirection toward the correct module.

Also, why would use more than one pipe per module and more than one message type? I guess I'm a little confused as how something would differ from the standard setup.
Pages: [1]