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.
43 lines
1.2 KiB
43 lines
1.2 KiB
/* |
|
* Copyright (C), 2018-2021 |
|
* Project: starter |
|
* FileName: IdnfConfig |
|
* Author: Louis |
|
* Date: 2021/3/30 9:38 |
|
*/ |
|
package com.fr.plugin.idnf.config; |
|
|
|
import com.fr.config.*; |
|
import com.fr.config.holder.Conf; |
|
import com.fr.config.holder.factory.Holders; |
|
|
|
/** |
|
* <Function Description><br> |
|
* <SsoConfig> |
|
* |
|
* @author fr.open |
|
* @since 1.0.0 |
|
*/ |
|
@Visualization(category = "Plugin-idnf_Group") |
|
public class IdnfConfig extends DefaultConfiguration { |
|
public static final String PLUGIN_ID = "com.fr.plugin.idnf.sso"; |
|
|
|
private static volatile IdnfConfig config = null; |
|
@Identifier(value = "keyCode", name = "Plugin-idnf_Config_KeyCode", description = "Plugin-idnf_Config_KeyCode_Description", status = Status.SHOW) |
|
private final Conf<String> keyCode = Holders.simple("username"); |
|
|
|
public static IdnfConfig getInstance() { |
|
if (config == null) { |
|
config = ConfigContext.getConfigInstance(IdnfConfig.class); |
|
} |
|
return config; |
|
} |
|
|
|
public String getKeyCode() { |
|
return keyCode.get(); |
|
} |
|
|
|
public void setKeyCode(String keyCode) { |
|
this.keyCode.set(keyCode); |
|
} |
|
} |