Skip to content

关于工程(开发)结构的讨论 #118

Open
@tcking

Description

@tcking
Contributor

首先这不是一个问题而是讨论,目的是为了探索基于small动态加载开发时的最佳实践,包括:
1.依赖管理:small使用同一个classloader加载不同的插件,因此不同插件中的依赖在运行时对其他插件和宿主都是可见的,所以依赖的管理一定要收敛,统一管理,避免各自引入。
2.插件之间的通信:插件的开发一般都是多team并行的,插件之间应避免直接调用来减少耦合
3.资源的使用:由于small的特性,runtime各插件的资源也是可以相互访问的,但在开发上需要组织和统一管理好,包括命名和安全的使用资源。

Activity

peacepassion

peacepassion commented on Apr 27, 2016

@peacepassion
Contributor
  1. 公用的依赖放在lib/host就好,但有些依赖是插件独有的,比如某个特殊的控件等, 如果都放在host里面的话,会使得host的方法数增加,容易超限, 而且, 如果日后更新bundle,就会比较受限了;
  2. 插件之间的通信是个重要议题,可以单独讨论一下. Reft 插件之间的通信/互调 #120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tcking@peacepassion@galenlin

        Issue actions

          关于工程(开发)结构的讨论 · Issue #118 · wequick/Small