Skip to content

使用JAVA的SPI规范来支持插件 #17

Open
@jcai

Description

@jcai

可以使用java的spi规范来实现插件系统,这样谁做的插件打包成jar,直接放入lib里面就可以自动加载了,不用显示的调用use之类的。

https://docs.oracle.com/javase/tutorial/sound/SPI-intro.html
https://docs.oracle.com/javase/7/docs/api/java/util/ServiceLoader.html

@diaozxin007 @redmaple1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions