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.
68 lines
2.1 KiB
68 lines
2.1 KiB
3 years ago
|
package com.fr.plugin.zjsso.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.zjsso.config", text = "单点登录配置", source = Original.PLUGIN)
|
||
|
public static PluginSimpleConfig getInstance() {
|
||
|
if (config == null) {
|
||
|
config = ConfigContext.getConfigInstance(PluginSimpleConfig.class);
|
||
|
}
|
||
|
return config;
|
||
|
}
|
||
|
|
||
|
@Identifier(value = "tokenUrl", name = "获取token接口", description = "获取token接口", status = Status.SHOW)
|
||
|
private Conf<String> tokenUrl = Holders.simple("http://xxxx/epidemicApi/auth/getToken");
|
||
|
|
||
|
@Identifier(value = "login", name = "登录接口", description = "登录接口", status = Status.SHOW)
|
||
|
private Conf<String> login = Holders.simple("login");
|
||
|
|
||
|
@Identifier(value = "domain", name = "子域名", description = "子域名", status = Status.SHOW)
|
||
|
private Conf<String> domain = Holders.simple("xxxx");
|
||
|
|
||
|
public String getTokenUrl() {
|
||
|
return tokenUrl.get();
|
||
|
}
|
||
|
|
||
|
public void setTokenUrl(String url) {
|
||
|
this.tokenUrl.set(url);
|
||
|
}
|
||
|
|
||
|
public String getLogin() {
|
||
|
return login.get();
|
||
|
}
|
||
|
|
||
|
public void setLogin(String url) {
|
||
|
this.login.set(url);
|
||
|
}
|
||
|
|
||
|
public String getDomain() {
|
||
|
return domain.get();
|
||
|
}
|
||
|
|
||
|
public void setDomain(String url) {
|
||
|
this.domain.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;
|
||
|
}
|
||
|
|
||
|
}
|