public class ConfigPropertiesFile extends DefaultConfigFile implements ConfigKVFile
| 构造器和说明 |
|---|
ConfigPropertiesFile(String namespace,
String fileGroup,
String fileName,
ConfigFileRepo configFileRepo,
com.tencent.polaris.api.config.configuration.ConfigFileConfig configFileConfig) |
addChangeListener, getContent, hasContent, removeChangeListenerequals, getFileGroup, getFileName, getNamespace, hashCode, toStringaddChangeListener, getContent, hasContent, removeChangeListenergetFileGroup, getFileName, getNamespacepublic ConfigPropertiesFile(String namespace, String fileGroup, String fileName, ConfigFileRepo configFileRepo, com.tencent.polaris.api.config.configuration.ConfigFileConfig configFileConfig)
public String getProperty(String key, String defaultValue)
getProperty 在接口中 ConfigKVFilepublic Integer getIntProperty(String key, Integer defaultValue)
getIntProperty 在接口中 ConfigKVFilepublic Long getLongProperty(String key, Long defaultValue)
getLongProperty 在接口中 ConfigKVFilepublic Short getShortProperty(String key, Short defaultValue)
getShortProperty 在接口中 ConfigKVFilepublic Float getFloatProperty(String key, Float defaultValue)
getFloatProperty 在接口中 ConfigKVFilepublic Double getDoubleProperty(String key, Double defaultValue)
getDoubleProperty 在接口中 ConfigKVFilepublic Byte getByteProperty(String key, Byte defaultValue)
getByteProperty 在接口中 ConfigKVFilepublic Boolean getBooleanProperty(String key, Boolean defaultValue)
getBooleanProperty 在接口中 ConfigKVFilepublic String[] getArrayProperty(String key, String delimiter, String[] defaultValue)
getArrayProperty 在接口中 ConfigKVFilepublic <T extends Enum<T>> T getEnumProperty(String key, Class<T> enumType, T defaultValue)
getEnumProperty 在接口中 ConfigKVFilepublic <T> T getJsonProperty(String key, Class<T> clazz, T defaultValue)
getJsonProperty 在接口中 ConfigKVFilepublic <T> T getJsonProperty(String key, Type typeOfT, T defaultValue)
getJsonProperty 在接口中 ConfigKVFilepublic <T> T asJson(Type typeOfT, T defaultValue)
asJson 在接口中 ConfigFileasJson 在类中 DefaultConfigFilepublic <T> T asJson(Class<T> objectType, T defaultValue)
asJson 在接口中 ConfigFileasJson 在类中 DefaultConfigFilepublic Set<String> getPropertyNames()
getPropertyNames 在接口中 ConfigKVFilepublic void addChangeListener(ConfigKVFileChangeListener listener)
addChangeListener 在接口中 ConfigKVFilepublic void removeChangeListener(ConfigKVFileChangeListener listener)
removeChangeListener 在接口中 ConfigKVFilepublic void onChange(ConfigFileMetadata configFileMetadata, String newContent)
onChange 在接口中 ConfigFileRepoChangeListeneronChange 在类中 DefaultConfigFileCopyright © 2022. All rights reserved.