Plugin overview
The plug-in module uses an independent ClassLoader class loader to manage private JAR packages, classes, resource files, etc. The design goal is to split requirements into a finer granularity in the interface development mode to achieve an ideal An encapsulation form of reusable code;
Each plug-in is a closed world. The only way to communicate between the plug-in and the outside world is through business interface calls. The container that manages these plug-ins is called a plug-in factory ( IPluginFactory), responsible for the analysis, loading and initialization of plug-ins, as well as the life cycle management of plug-ins. The plug-in module supports the creation of multiple plug-in factory instances. The factory objects are completely independent and have no dependencies;
Maven package dependency
<dependency> <groupId>net.ymate.platform</groupId> <artifactId>ymate-platform-plugin</artifactId> <version>2.0-SNAPSHOT</version> </dependency>
Note: Add the above configuration in the project's pom.xml, the module has Core package dependencies are introduced by default, no need to repeat configuration.