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.
63 lines
1.7 KiB
63 lines
1.7 KiB
package com.finebi.plugin.tptj.ivan.chart.demo.amap.config; |
|
|
|
import com.finebi.plugin.tptj.ivan.chart.demo.amap.constant.PluginConstantsEK; |
|
import com.fr.config.ConfigContext; |
|
import com.fr.config.DefaultConfiguration; |
|
import com.fr.config.Identifier; |
|
import com.fr.config.Status; |
|
import com.fr.config.Visualization; |
|
import com.fr.config.holder.Conf; |
|
import com.fr.config.holder.factory.Holders; |
|
|
|
/** |
|
* @author Ivan.Guo |
|
* @version 11.0 |
|
*/ |
|
@Visualization(category = "Plugin-DEMO_CONF") |
|
public class MapHotConfig extends DefaultConfiguration { |
|
private static volatile MapHotConfig instance = null; |
|
|
|
@Override |
|
public String getNameSpace() { |
|
return PluginConstantsEK.PLUGIN_ID + this.getClass().getSimpleName(); |
|
} |
|
|
|
public static MapHotConfig getInstance() { |
|
if (instance == null) { |
|
instance = ConfigContext.getConfigInstance(MapHotConfig.class); |
|
} |
|
return instance; |
|
} |
|
|
|
@Identifier( |
|
value = "key", |
|
name = "Plugin-DEMO_CONF_KEY", |
|
description = "Plugin-DEMO_CONF_KEY_DES", |
|
status = Status.SHOW |
|
) |
|
private Conf<String> key = Holders.simple(""); |
|
|
|
@Identifier( |
|
value = "secretKey", |
|
name = "Plugin-DEMO_CONF_SECRET", |
|
description = "Plugin-DEMO_CONF_SECRET_DES", |
|
status = Status.SHOW |
|
) |
|
private Conf<String> secretKey = Holders.simple(""); |
|
|
|
public String getKey() { |
|
return key.get(); |
|
} |
|
|
|
public void setKey(String key) { |
|
this.key.set(key); |
|
} |
|
|
|
public String getSecretKey() { |
|
return secretKey.get(); |
|
} |
|
|
|
public void setSecretKey(String secretKey) { |
|
this.secretKey.set(secretKey); |
|
} |
|
}
|
|
|