forked from fanruan/design
Browse Source
Merge in DESIGN/design from ~LUCIAN.CHEN/design:release/10.0 to release/10.0 * commit '202b0292698974c1a148ec201a2a7f02356c02d9': REPORT-48228 插件实现的插件管理不受shouldShowPlugin限制 REPORT-47901 填报-导入excel-双向扩展是,表头部分扩展,多行导入数据丢失 REPORT-48228 【10.0.15】国际化接口-插件jar包不匹配弹窗接口feature/big-screen
Lucian.Chen
4 years ago
4 changed files with 95 additions and 9 deletions
@ -0,0 +1,20 @@
|
||||
package com.fr.design.fun; |
||||
|
||||
import com.fr.design.actions.UpdateAction; |
||||
import com.fr.stable.fun.mark.Selectable; |
||||
|
||||
/** |
||||
* 替换插件管理入口 |
||||
* @author Lucian.Chen |
||||
* @version 10.0 |
||||
* Created by Lucian.Chen on 2021/2/20 |
||||
*/ |
||||
public interface PluginManagerProvider extends Selectable { |
||||
|
||||
String MARK_STRING = "PluginManagerProvider"; |
||||
|
||||
int CURRENT_LEVEL = 1; |
||||
|
||||
// 插件管理
|
||||
UpdateAction pluginManagerAction(); |
||||
} |
@ -0,0 +1,30 @@
|
||||
package com.fr.design.fun.impl; |
||||
|
||||
import com.fr.design.fun.PluginManagerProvider; |
||||
import com.fr.stable.fun.assist.Selector; |
||||
import com.fr.stable.fun.impl.AbstractProvider; |
||||
import com.fr.stable.fun.mark.API; |
||||
|
||||
/** |
||||
* @author Lucian.Chen |
||||
* @version 10.0 |
||||
* Created by Lucian.Chen on 2021/2/20 |
||||
*/ |
||||
@API(level = PluginManagerProvider.CURRENT_LEVEL) |
||||
public abstract class AbstractPluginManagerProvider extends AbstractProvider implements PluginManagerProvider { |
||||
|
||||
public int currentAPILevel() { |
||||
return CURRENT_LEVEL; |
||||
} |
||||
|
||||
@Override |
||||
public String mark4Provider() { |
||||
return getClass().getName(); |
||||
} |
||||
|
||||
@Override |
||||
public Selector selector() { |
||||
return Selector.ALWAYS; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue