优化代码逻辑,使用ServiceLoader加载未知类的实例

This commit is contained in:
2019-05-15 17:04:42 +08:00
parent 3e1fc4ac19
commit ce8c0362d7
14 changed files with 175 additions and 15 deletions

View File

@@ -0,0 +1,9 @@
package net.tccn.base;
/**
* ServiceLoader 管理标识
* @author: liangxianyou
*/
public interface IService {
String getType();
}