Dynamic event registration like Mediator-Pattern
Afficher commentaires plus anciens
Hi,
I try to develop a oop gui application with AppDesigner and mvc pattern ... and at the moment I struggle to decouple my controller from backend services.
I was thinking about using a mediator for event handling. So I can attach a producer with 'any' event and register some consumers for this event.
Like displayed below.
But know have the problem that the 'dynamic' registered event is unknown to the mediator.
Does someone how I could solve my issue? I'm sure I have to do it in part 'attach as consumer' :) but I don't know how :/ (at the moment)
> identifier: 'MATLAB:class:invalidEvent'
> message: 'Event 'TestEvent' is not defined for class 'Mediator'.'

1 commentaire
Ricardo Krause
le 18 Mar 2019
Réponses (0)
Catégories
En savoir plus sur MATLAB Support Package for IP Cameras dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
