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.
69 lines
2.2 KiB
69 lines
2.2 KiB
4 years ago
|
package com.fr.plugin.zgfysso.config;
|
||
|
|
||
|
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.record.analyzer.EnableMetrics;
|
||
|
|
||
|
@Visualization(category = "单点登录配置")
|
||
|
@EnableMetrics
|
||
|
public class PluginSimpleConfig extends DefaultConfiguration {
|
||
|
|
||
|
private static volatile PluginSimpleConfig config = null;
|
||
|
|
||
|
@Focus(id="com.fr.plugin.zgfysso.config", text = "单点登录配置", source = Original.PLUGIN)
|
||
|
public static PluginSimpleConfig getInstance() {
|
||
|
if (config == null) {
|
||
|
config = ConfigContext.getConfigInstance(PluginSimpleConfig.class);
|
||
|
}
|
||
|
return config;
|
||
|
}
|
||
|
|
||
|
@Identifier(value = "tokenStr", name = "token参数名", description = "token参数名", status = Status.SHOW)
|
||
|
private Conf<String> tokenStr = Holders.simple("tokenid");
|
||
|
|
||
|
@Identifier(value = "sysid", name = "systemid", description = "systemid", status = Status.SHOW)
|
||
|
private Conf<String> sysid = Holders.simple("xxx");
|
||
|
|
||
|
@Identifier(value = "tokenUrl", name = "获取token链接", description = "获取token链接", status = Status.SHOW)
|
||
|
private Conf<String> tokenUrl = Holders.simple("http://localhost:xxx/fr/user/");
|
||
|
|
||
|
public String getTokenStr() {
|
||
|
return tokenStr.get();
|
||
|
}
|
||
|
|
||
|
public void setTokenStr(String url) {
|
||
|
this.tokenStr.set(url);
|
||
|
}
|
||
|
|
||
|
public String getSysid() {
|
||
|
return sysid.get();
|
||
|
}
|
||
|
|
||
|
public void setSysid(String url) {
|
||
|
this.sysid.set(url);
|
||
|
}
|
||
|
|
||
|
public String getTokenUrl() {
|
||
|
return tokenUrl.get();
|
||
|
}
|
||
|
|
||
|
public void setTokenUrl(String url) {
|
||
|
this.tokenUrl.set(url);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public Object clone() throws CloneNotSupportedException {
|
||
|
PluginSimpleConfig cloned = (PluginSimpleConfig) super.clone();
|
||
|
// cloned.text = (Conf<String>) text.clone();
|
||
|
// cloned.count = (Conf<Integer>) count.clone();
|
||
|
// cloned.price = (Conf<Double>) price.clone();
|
||
|
// cloned.time = (Conf<Long>) time.clone();
|
||
|
// cloned.student = (Conf<Boolean>) student.clone();
|
||
|
return cloned;
|
||
|
}
|
||
|
|
||
|
}
|