Inter-plugin communication in Eclipse

前端 未结 2 1302
野的像风
野的像风 2021-02-10 13:42

Is it possible to create Eclipse plugins that auto-discover eachother?

I am developing a set of plugins that need to operate in two primary situations:

  • ind
2条回答
  •  走了就别回头了
    2021-02-10 14:07

    Well, the OSGI Service Registry can accomplish the sharing of pojo based services at runtime, not the plugins themselves. There are several options to facilitate this, such as coding directly to the OSGI API, Declarative Services, Spring DM and iPojo (I am sure there are others as well).

    You may want to check out the Whiteboard Pattern as a means of accomplishing a dynamic Observer/Observable style solution.

提交回复
热议问题