You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.9 KiB
61 lines
1.9 KiB
3 years ago
|
/*
|
||
|
* Copyright (C), 2015-2019
|
||
|
* FileName: ConfigTableDataService
|
||
|
* Author: Louis
|
||
|
* Date: 2019/6/5 16:13
|
||
|
* Description: starter
|
||
|
* History:
|
||
|
* <author> <time> <version> <desc>
|
||
|
*/
|
||
|
package com.fr.plugin.tabledataservice;
|
||
|
|
||
|
import com.fr.config.*;
|
||
|
import com.fr.config.holder.Conf;
|
||
|
import com.fr.config.holder.factory.Holders;
|
||
|
import com.fr.intelli.record.Focus;
|
||
|
import com.fr.intelli.record.Original;
|
||
|
import com.fr.stable.StringUtils;
|
||
|
|
||
|
/**
|
||
|
* 〈Function Description〉<br>
|
||
|
* 〈ConfigTableDataService〉
|
||
|
*
|
||
|
* @author fr.open
|
||
|
* @since 1.0.0
|
||
|
*/
|
||
|
@Visualization(category = "Plugin-tabledataservice_Group")
|
||
|
public class ConfigTableDataService extends DefaultConfiguration {
|
||
|
|
||
|
public static final String DEFAULT_APPKEY = StringUtils.EMPTY;
|
||
|
public static final String WS_URL = "http://localhost:8888/fr/ws";
|
||
|
|
||
|
private static volatile ConfigTableDataService config = null;
|
||
|
@Identifier(value = "appKey", name = "Plugin-tabledataservice_Config_AppKey", description = "Plugin-tabledataservice_Config_AppKey_Description", status = Status.SHOW)
|
||
|
private Conf<String> appKey = Holders.simple(DEFAULT_APPKEY);
|
||
|
@Identifier(value = "wsUri", name = "Plugin-tabledataservice_Config_WsUri", description = "Plugin-tabledataservice_Config_WsUri_Description", status = Status.SHOW)
|
||
|
private Conf<String> wsUri = Holders.simple(WS_URL);
|
||
|
|
||
|
@Focus(id = Constants.PLUGIN_ID, text = "Plugin-tabledataservice", source = Original.PLUGIN)
|
||
|
public static ConfigTableDataService getInstance() {
|
||
|
if (config == null) {
|
||
|
config = ConfigContext.getConfigInstance(ConfigTableDataService.class);
|
||
|
}
|
||
|
return config;
|
||
|
}
|
||
|
|
||
|
public String getAppKey() {
|
||
|
return appKey.get();
|
||
|
}
|
||
|
|
||
|
public void setAppKey(String appKey) {
|
||
|
this.appKey.set(appKey);
|
||
|
}
|
||
|
|
||
|
public String getWsUri() {
|
||
|
return wsUri.get();
|
||
|
}
|
||
|
|
||
|
public void setWsUri(String wsUri) {
|
||
|
this.wsUri.set(wsUri);
|
||
|
}
|
||
|
}
|