Java插件框架:PF4J
利用PF4J能夠輕松將單一的Java應用轉換成模塊化的應用程序。
PF4J 是一個開源的,輕量級(大約50KB)插件框架。擁有最小的依賴關系(只SLF4J-API)和很強的可擴展(見PluginDescriptorFinder和ExtensionFinder)。實際上PF4J是一個microframework并保持其核心簡單,但可擴展。
現在有這些擴展可用:
- wicket-plugin
- pf4j-spring
- pf4j-web
- pf4j-update </ul>
- Plugin is the base class for all plugins types. Each plugin is loaded into a separate class loader to avoid conflicts.
- PluginManager is used for all aspects of plugins management (loading, starting, stopping).
- ExtensionPoint is a point in the application where custom code can be invoked. It's a java interface marker.
Any java interface or abstract class can be marked as an extension point (implements ExtensionPoint interface). - Extension is an implementation of an extension point. It's a java annotation on a class. </ul>
組件
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!