GithubHelp home page GithubHelp logo

Communication between plugins about pf4j-spring HOT 4 CLOSED

pf4j avatar pf4j commented on June 2, 2024
Communication between plugins

from pf4j-spring.

Comments (4)

otmanel31 avatar otmanel31 commented on June 2, 2024

I tried something like getWapper().getPluginManager in my constructor plugin. Then i tried to get for example extensions list and when i count it, i have 0 found. When i execute it in my main app, it found my extensions.

from pf4j-spring.

decebals avatar decebals commented on June 2, 2024

Take a look at:

from pf4j-spring.

otmanel31 avatar otmanel31 commented on June 2, 2024

Thanks, the #79 issue is a pull approach ?
using getwrapper.getPluginmanager() is a pull approach isn't it ?
I'm able to list my plugins other plugin inside a specific plugin.
I tried something else .... I created a custom plugin (which is abstract) in my api (where are interfaces and abstract class) .... then i'm able in the main app to check the className of plugin and cast it to given Abstract class of my api and call specific method of my plugins. For example plugin1.setContextForYou() or plugin1.setListForSpecificTypeOfPlugins() ..... i think this is a push approach ?

from pf4j-spring.

otmanel31 avatar otmanel31 commented on June 2, 2024

As describe in previous comment, communication between plugin is done. For me , there are two ways :

  • push approach
  • pull approach

from pf4j-spring.

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.