Skip to content

Latest commit

 

History

History
77 lines (42 loc) · 2.13 KB

README-plugin.md

File metadata and controls

77 lines (42 loc) · 2.13 KB

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.

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