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.
48 lines
1.4 KiB
48 lines
1.4 KiB
package com.fr.plugin.xxxx.sso.conf; |
|
|
|
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; |
|
|
|
|
|
/** |
|
* @author fr.open |
|
* @since 2021/12/04 |
|
*/ |
|
@Visualization(category = "Oauth2单点登陆配置") |
|
@EnableMetrics |
|
public class ExcelExportConfig extends DefaultConfiguration { |
|
|
|
private static volatile ExcelExportConfig config = null; |
|
|
|
@Focus(id = "com.fr.plugin.xxxx.sso", text = "Oauth2单点登陆配置", source = Original.PLUGIN) |
|
public static ExcelExportConfig getInstance() { |
|
if (config == null) { |
|
config = ConfigContext.getConfigInstance(ExcelExportConfig.class); |
|
} |
|
return config; |
|
} |
|
|
|
@Identifier(value = "debugSwitch", name = "插件调试开关", description = "日志调试模式", status = Status.SHOW) |
|
private Conf<Boolean> debugSwitch = Holders.simple(true); |
|
|
|
public Boolean getDebugSwitch() { |
|
return this.debugSwitch.get(); |
|
} |
|
|
|
public void setDebugSwitch(Boolean debugSwitch) { |
|
this.debugSwitch.set(debugSwitch); |
|
} |
|
|
|
@Override |
|
public Object clone() throws CloneNotSupportedException { |
|
ExcelExportConfig cloned = (ExcelExportConfig) super.clone(); |
|
cloned.debugSwitch = (Conf<Boolean>) debugSwitch.clone(); |
|
return cloned; |
|
} |
|
|
|
|
|
}
|
|
|