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  Announcements and General Discussion / General Discussion / Re: Multicore Pipes vs Fabrication on: January 30, 2009, 07:04:32
Yes, i agree,

i thounght about this, this morning, and came up with the following thoughts:

- If the Notes are known, all notes could be send to a module. There is no filtering and internal notes, that where send from external, could damage the module at runtime.

-> So I would need another methond (receiveGlobalMessage) for filtering, and then use a mediator to listen to the wanted note. So I am back to JunctionMediators.

I wanted to keep it simple, but the mechanics of pipes should bring all the things I need.

Fabrication is a cool attempt, but far to big. Would be better, if single features would be seperated. Like the Pipes Handling. :)

Thanks for your input.

Greeting from Leipzig, Germany.

2  Announcements and General Discussion / General Discussion / Re: Multicore Pipes vs Fabrication on: January 29, 2009, 07:50:19
Hi Cliff and Darshan,

I use the presence of you both in this Thread to ask a question, that came in my mind today.

1. I'm I right, that there must be names for each pipe?
2. I'm I right, that the receiving part must know, what type of Message comes there, or what is in the NoteBody?
3. Isn't it much simpler to add an Interface to a SubClass of Facade like 'IGlobalBroadcaster', with something like this:

public function sendGlobalNotification(notificationName : String,
    body : Object = null, type : String = null) : void {

  for each(var facade : IFacade in instanceMap) {
    facade.sendNotification(notificationName, body, type);

All cores would get the message, but the payload is much lower, because the observerMap in View has no such noteName and therefore nothing happens in a core, that does not know the noteName.

In both cases you need an API from the module, I think, but this would be much more efficient.

I searched the forum an the internet, but nothing could anwser this question.

Maybe you can.

Thanks for replying.

Pages: [1]