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.
44 lines
1.2 KiB
44 lines
1.2 KiB
3 years ago
|
/*
|
||
|
* Copyright (C), 2018-2021
|
||
|
* Project: starter
|
||
|
* FileName: IshcConfig
|
||
|
* Author: xx
|
||
|
* Date: 2021/3/30 9:38
|
||
|
*/
|
||
|
package com.fr.plugin.ishc.config;
|
||
|
|
||
|
import com.fanruan.api.util.StringKit;
|
||
|
import com.fr.config.*;
|
||
|
import com.fr.config.holder.Conf;
|
||
|
import com.fr.config.holder.factory.Holders;
|
||
|
|
||
|
/**
|
||
|
* <Function Description><br>
|
||
|
* <IshcConfig>
|
||
|
*
|
||
|
* @author xx
|
||
|
* @since 1.0.0
|
||
|
*/
|
||
|
@Visualization(category = "Plugin-ishc_Group")
|
||
|
public class IshcConfig extends DefaultConfiguration {
|
||
|
public static final String PLUGIN_ID = "com.fr.plugin.ishc.sso";
|
||
|
|
||
|
private static volatile IshcConfig config = null;
|
||
|
@Identifier(value = "uriBase", name = "Plugin-ishc_Config_UriBase", description = "Plugin-ishc_Config_UriBase_Description", status = Status.SHOW)
|
||
|
private final Conf<String> uriBase = Holders.simple(StringKit.EMPTY);
|
||
|
|
||
|
public static IshcConfig getInstance() {
|
||
|
if (config == null) {
|
||
|
config = ConfigContext.getConfigInstance(IshcConfig.class);
|
||
|
}
|
||
|
return config;
|
||
|
}
|
||
|
|
||
|
public String getUriBase() {
|
||
|
return uriBase.get();
|
||
|
}
|
||
|
|
||
|
public void setUriBase(String uriBase) {
|
||
|
this.uriBase.set(uriBase);
|
||
|
}
|
||
|
}
|