Code Monkey home page Code Monkey logo

Comments (2)

shifujun avatar shifujun commented on June 1, 2024

不通过service实现你就得自己处理跨进程调用的问题,那就自己写个binder,像shadow的PPS一样。

如果在同一个进程,最简单的手段就是让插件依赖宿主一个接口,然后把实现填充到一个静态域里。像sample中 HostUiLayerProvider 那样。

from shadow.

yaoyue1019 avatar yaoyue1019 commented on June 1, 2024

不通过service实现你就得自己处理跨进程调用的问题,那就自己写个binder,像shadow的PPS一样。

如果在同一个进程,最简单的手段就是让插件依赖宿主一个接口,然后把实现填充到一个静态域里。像sample中 HostUiLayerProvider 那样。

试了一把把相关的功能改到pps里感觉有点复杂,最后还是决定改到service里执行,就是返回值结果似乎没法返回给调用方这里有点麻烦,需要通过广播通知调用方,是否有更方便的方法可以通知调用方?

from shadow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.