18 Star 99 Fork 20

Leon Lambert / ToolsFx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README-plugin.md 2.13 KB
一键复制 编辑 原始数据 按行查看 历史
Leon Lambert 提交于 2022-12-17 11:58 . docs: update README

ToolsFx Plugin Guide

English|中文

Leon406:: Visitor's Count ToolsFx:: Visitor's Count

Support two principles meanwhile

Principle 1 classloader

Bases on java classloader, load implement of plugin jar, and also uses convention over configuration conception.

Jar File name muse be full quality class name. When application starts, it will scan jar files under plugin directory,and instanced by reflection.

Principle 2 spi(Service Provider Interface)

Host application will instance all interface implementations by ServiceLoader#load, and plugin module resources directory must hava META-INF/services/{plugin interface full quality class name} file whose content is plugin interface implementation class full quality name

Compare

Principle Load Time Naming
classloader if needed jar file strictly naming with full quality class name of impl
spi with host app jar file is ok

problem: when plugin app is a plugin, it can't access its own resource

Develop Related

see plugin-sample or plugin-apipost

Plugins

  • ApiPost

    support methods

sym

data and headers

sym

file upload

sym

Location (经纬度转换)

location

Compression (压缩)

Image Process

  • png fix
  • binary 01 to image
  • binary 01 to qrcode
  • rgb to image
  • base64 to image
  • image to base64
  • gif split

plugin download https://leon.lanzoub.com/b0d9w4cof 提取码:ax63

Kotlin
1
https://gitee.com/LeonShih/ToolsFx.git
git@gitee.com:LeonShih/ToolsFx.git
LeonShih
ToolsFx
ToolsFx
dev

搜索帮助