类 CompositeConfiguration

  • 所有已实现的接口:
    Configuration

    public class CompositeConfiguration
    extends Object
    implements Configuration
    This is an abstraction specially customized for the sequence Dubbo retrieves properties.
    • 构造器详细资料

      • CompositeConfiguration

        public CompositeConfiguration()
      • CompositeConfiguration

        public CompositeConfiguration​(String prefix,
                                      String id)
      • CompositeConfiguration

        public CompositeConfiguration​(Configuration... configurations)
    • 方法详细资料

      • setDynamicIncluded

        public void setDynamicIncluded​(boolean dynamicIncluded)
      • isDynamicIncluded

        public boolean isDynamicIncluded()
      • addConfiguration

        public void addConfiguration​(Configuration configuration)
      • addConfigurationFirst

        public void addConfigurationFirst​(Configuration configuration)
      • addConfiguration

        public void addConfiguration​(int pos,
                                     Configuration configuration)
      • containsKey

        public boolean containsKey​(String key)
        从接口复制的说明: Configuration
        Check if the configuration contains the specified key.
        指定者:
        containsKey 在接口中 Configuration
        参数:
        key - the key whose presence in this configuration is to be tested
        返回:
        true if the configuration contains a value for this key, false otherwise
      • getProperty

        public Object getProperty​(String key,
                                  Object defaultValue)
        从接口复制的说明: Configuration
        Gets a property from the configuration. The default value will return if the configuration doesn't contain the mapping for the specified key.
        指定者:
        getProperty 在接口中 Configuration
        参数:
        key - property to retrieve
        defaultValue - default value
        返回:
        the value to which this configuration maps the specified key, or default value if the configuration contains no mapping for this key.