1 | Method m |
2 | Client |
3 | B |
4 | Register event to correspond to linkage of modules in visual WebFlow diagram: "Let firing event e by module A |
5 | result in invocation of method m of module B" |
6 | Context 2 |
7 | Module A does not care who is expecting the event; method fireEvent invokes a method of its parent context |
8 | Method m is a public method: anyone can invoke it, including the Event Adapter of Context 1. No protection against misuse! |
9 | Dynamic |
10 | Interfaces |
11 | A |
12 | B |