Class PropertiesConfiguration

java.lang.Object
org.apache.dubbo.common.config.PropertiesConfiguration
All Implemented Interfaces:
Configuration

public class PropertiesConfiguration extends Object implements Configuration
Configuration from system properties and dubbo.properties
  • Constructor Details

    • PropertiesConfiguration

      public PropertiesConfiguration(ScopeModel scopeModel)
  • Method Details

    • refresh

      public void refresh()
    • getProperty

      public String getProperty(String key)
      Description copied from interface: Configuration
      Gets a property from the configuration. This is the most basic get method for retrieving values of properties. In a typical implementation of the Configuration interface the other get methods (that return specific data types) will internally make use of this method. On this level variable substitution is not yet performed. The returned object is an internal representation of the property value for the passed in key. It is owned by the Configuration object. So a caller should not modify this object. It cannot be guaranteed that this object will stay constant over time (i.e. further update operations on the configuration may change its internal state).
      Specified by:
      getProperty in interface Configuration
      Parameters:
      key - property to retrieve
      Returns:
      the value to which this configuration maps the specified key, or null if the configuration contains no mapping for this key.
    • getInternalProperty

      public Object getInternalProperty(String key)
      Specified by:
      getInternalProperty in interface Configuration
    • setProperty

      public void setProperty(String key, String value)
    • remove

      public String remove(String key)
    • setProperties

      @Deprecated public void setProperties(Properties properties)
      Deprecated.
    • getProperties

      public Map<String,String> getProperties()