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.
79 lines
2.4 KiB
79 lines
2.4 KiB
package com.eco.plugin.xx.zgrsauth.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.eco.plugin.xx.zgrsauth.config", text = "二次认证配置", source = Original.PLUGIN) |
|
public static PluginSimpleConfig getInstance() { |
|
if (config == null) { |
|
config = ConfigContext.getConfigInstance(PluginSimpleConfig.class); |
|
} |
|
return config; |
|
} |
|
|
|
@Identifier(value = "dimensionCd", name = "维度编码", description = "维度编码", status = Status.SHOW) |
|
private Conf<String> dimensionCd = Holders.simple(""); |
|
|
|
@Identifier(value = "systemCd", name = "系统编号", description = "系统编号", status = Status.SHOW) |
|
private Conf<String> systemCd = Holders.simple(""); |
|
|
|
@Identifier(value = "flag", name = "标识参数", description = "标识参数", status = Status.SHOW) |
|
private Conf<String> flag = Holders.simple(""); |
|
|
|
@Identifier(value = "url", name = "接口地址", description = "接口地址", status = Status.SHOW) |
|
private Conf<String> url = Holders.simple(""); |
|
|
|
public String getDimensionCd() { |
|
return dimensionCd.get(); |
|
} |
|
|
|
public void setDimensionCd(String url) { |
|
this.dimensionCd.set(url); |
|
} |
|
|
|
public String getSystemCd() { |
|
return systemCd.get(); |
|
} |
|
|
|
public void setSystemCd(String url) { |
|
this.systemCd.set(url); |
|
} |
|
|
|
public String getFlag() { |
|
return flag.get(); |
|
} |
|
|
|
public void setFlag(String url) { |
|
this.flag.set(url); |
|
} |
|
|
|
public String getUrl() { |
|
return url.get(); |
|
} |
|
|
|
public void setUrl(String url) { |
|
this.url.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; |
|
} |
|
|
|
}
|
|
|