类 AbstractConfig

    • 构造器详细资料

      • AbstractConfig

        public AbstractConfig()
    • 方法详细资料

      • getTagName

        public static String getTagName​(Class<?> cls)
      • getPluralTagName

        public static String getPluralTagName​(Class<?> cls)
      • appendParameters

        public static void appendParameters​(Map<String,​String> parameters,
                                            Object config)
      • appendAttributes

        public static void appendAttributes​(Map<String,​String> parameters,
                                            Object config)
        Put attributes of specify 'config' into 'parameters' argument
        参数:
        parameters -
        config -
      • setId

        public void setId​(String id)
      • updateIdIfAbsent

        public void updateIdIfAbsent​(String value)
      • getMetaData

        public Map<String,​String> getMetaData()

        The new instance of the AbstractConfig subclass should return empty metadata. The purpose is is to get the attributes set by the user instead of the default value when the refresh() method handles attribute overrides.

        The default value of the field should be set in the checkDefault() method, which will be called at the end of refresh(), so that it will not affect the behavior of attribute overrides.

        Should be called after Config was fully initialized.

        Notice! This method should include all properties in the returning map, treat @Parameter differently compared to appendParameters?

        // FIXME: this method should be completely replaced by appendParameters? // -- Url parameter may use key, but props override only use property name. So replace it with appendAttributes().
        另请参阅:
        checkDefault(), appendParameters(Map, Object, String)
      • refresh

        public void refresh()
        Dubbo config property override
      • isValid

        @Parameter(excluded=true,
                   attribute=false)
        public boolean isValid()
        FIXME check @Parameter(required=true) and any conditions that need to match.
      • setDefault

        public void setDefault​(Boolean isDefault)
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 Object