类 ConfigPropertiesFile

所有已实现的接口:
ConfigFile, ConfigFileMetadata, ConfigKVFile, ConfigFileRepoChangeListener
直接已知子类:
ConfigYamlFile

public class ConfigPropertiesFile
extends DefaultConfigFile
implements ConfigKVFile
The properties file.
作者:
lepdou 2022-03-04
  • 构造器详细资料

    • ConfigPropertiesFile

      public ConfigPropertiesFile​(java.lang.String namespace, java.lang.String fileGroup, java.lang.String fileName, ConfigFileRepo configFileRepo, com.tencent.polaris.api.config.configuration.ConfigFileConfig configFileConfig)
  • 方法详细资料

    • getProperty

      public java.lang.String getProperty​(java.lang.String key, java.lang.String defaultValue)
      指定者:
      getProperty 在接口中 ConfigKVFile
    • getIntProperty

      public java.lang.Integer getIntProperty​(java.lang.String key, java.lang.Integer defaultValue)
      指定者:
      getIntProperty 在接口中 ConfigKVFile
    • getLongProperty

      public java.lang.Long getLongProperty​(java.lang.String key, java.lang.Long defaultValue)
      指定者:
      getLongProperty 在接口中 ConfigKVFile
    • getShortProperty

      public java.lang.Short getShortProperty​(java.lang.String key, java.lang.Short defaultValue)
      指定者:
      getShortProperty 在接口中 ConfigKVFile
    • getFloatProperty

      public java.lang.Float getFloatProperty​(java.lang.String key, java.lang.Float defaultValue)
      指定者:
      getFloatProperty 在接口中 ConfigKVFile
    • getDoubleProperty

      public java.lang.Double getDoubleProperty​(java.lang.String key, java.lang.Double defaultValue)
      指定者:
      getDoubleProperty 在接口中 ConfigKVFile
    • getByteProperty

      public java.lang.Byte getByteProperty​(java.lang.String key, java.lang.Byte defaultValue)
      指定者:
      getByteProperty 在接口中 ConfigKVFile
    • getBooleanProperty

      public java.lang.Boolean getBooleanProperty​(java.lang.String key, java.lang.Boolean defaultValue)
      指定者:
      getBooleanProperty 在接口中 ConfigKVFile
    • getArrayProperty

      public java.lang.String[] getArrayProperty​(java.lang.String key, java.lang.String delimiter, java.lang.String[] defaultValue)
      指定者:
      getArrayProperty 在接口中 ConfigKVFile
    • getEnumProperty

      public <T extends java.lang.Enum<T>> T getEnumProperty​(java.lang.String key, java.lang.Class<T> enumType, T defaultValue)
      指定者:
      getEnumProperty 在接口中 ConfigKVFile
    • getJsonProperty

      public <T> T getJsonProperty​(java.lang.String key, java.lang.Class<T> clazz, T defaultValue)
      指定者:
      getJsonProperty 在接口中 ConfigKVFile
    • getJsonProperty

      public <T> T getJsonProperty​(java.lang.String key, java.lang.reflect.Type typeOfT, T defaultValue)
      指定者:
      getJsonProperty 在接口中 ConfigKVFile
    • asJson

      public <T> T asJson​(java.lang.reflect.Type typeOfT, T defaultValue)
      指定者:
      asJson 在接口中 ConfigFile
      覆盖:
      asJson 在类中 DefaultConfigFile
    • asJson

      public <T> T asJson​(java.lang.Class<T> objectType, T defaultValue)
      指定者:
      asJson 在接口中 ConfigFile
      覆盖:
      asJson 在类中 DefaultConfigFile
    • getPropertyNames

      public java.util.Set<java.lang.String> getPropertyNames()
      指定者:
      getPropertyNames 在接口中 ConfigKVFile
    • addChangeListener

      public void addChangeListener​(ConfigKVFileChangeListener listener)
      指定者:
      addChangeListener 在接口中 ConfigKVFile
    • removeChangeListener

      public void removeChangeListener​(ConfigKVFileChangeListener listener)
      指定者:
      removeChangeListener 在接口中 ConfigKVFile
    • onChange

      public void onChange​(ConfigFileMetadata configFileMetadata, java.lang.String newContent)
      指定者:
      onChange 在接口中 ConfigFileRepoChangeListener
      覆盖:
      onChange 在类中 DefaultConfigFile