Skip to content

MoneyHacker/spi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

一 通用SPI ,Java SPI, Dubbo SPI

从dubbo中抽取的spi 详情看示例 SPILoaderTest.java

二 使用,具体可参见测试类(SPILoaderTest)

@Test public void shouldAnswerWithTrue() { SPILoader task = SPILoader.getExtensionLoader(Task.class); System.out.println(task.getExtension("taskOne").getName()); System.out.println(task.getExtension("taskTwo").getName()); System.out.println(task.getSupportedExtensions()); System.out.println(task.getDefaultExtensionName()); }

三 交流(QQ群:51567067) 支持

微信支付宝

About

通用SPI ,Java SPI, Dubbo SPI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages