Plugin - a configuration, only one step away from the plugin mechanism


insert image description here


Pre

Plugins - We mentioned the disadvantages in plugin management via SPI

  • Unable to guarantee unique implementation: In the SPI mechanism, there may be multiple provider implementations for the same service interface, and it is impossible to specify which one to use.
  • Dependent on the configuration file: The configuration file is the key to discover and load the provider. If the configuration file is missing or wrong, the provider cannot be loaded.

insert image description here

<

Guess you like

Origin blog.csdn.net/yangshangwei/article/details/131286866