• How do Application Tiers Communicate in Robotlegs


    Robotlegs uses native flash events for communication between framework actors. Custom events are typically utilized for this purpose, it is however possible to use existing Flash events for this same purpose. Robotlegs does not support Event bubbling, as it does not depend on the Flash display list as an event bus. Utilizing custom events allows developers to add properties to the Event that can be used as strongly typed payloads for system events between framework actors.

    Events are sent from all framework actors: Mediators, Models, and Commands. Mediators are the only actors that receive framework events. Commands are triggered in response to framework events. An event can be both received by a Mediator as well as trigger a command.

    Models and Services to not listen for or respond to events. Doing so would tightly couple them to application specific logic and reduce the potential for portability and reuse.

    Robotlegs框架使用flash自带事件机制进行通信,自定义的事件也是利用的flash事件机制,目的与flash自带事件一样。Robotlegs不支持事件冒泡,所以不依赖于Flash显示列表。自定义事件允许开发者添加一个强类型的事件属性。

    Mediators、Models、Commands可以发送事件。只有Mediators接收框架事件。

  • 相关阅读:
    Windows 08 R2_组策略
    Nginx常用配置实例(4)
    Nginx日常维护操作(3)
    Nginx配置文件(2)
    Nginx概述和安装(1)
    Zabbix实战-简易教程--通过公众平台企业号发送短信
    HDFS ZKFC自动切换原理分析
    HDFS ZKFC自动切换原理分析
    DataNode启动优化改进:磁盘检测并行化
    DataNode启动优化改进:磁盘检测并行化
  • 原文地址:https://www.cnblogs.com/ywxgod/p/2017868.html
Copyright © 2020-2023  润新知