类 ReferenceConfigBase<T>

    • 构造器详细资料

      • ReferenceConfigBase

        public ReferenceConfigBase()
      • ReferenceConfigBase

        public ReferenceConfigBase​(ModuleModel moduleModel)
      • ReferenceConfigBase

        public ReferenceConfigBase​(Reference reference)
      • ReferenceConfigBase

        public ReferenceConfigBase​(ModuleModel moduleModel,
                                   Reference reference)
    • 方法详细资料

      • shouldCheck

        public boolean shouldCheck()
      • shouldInit

        public boolean shouldInit()
      • getMetaData

        public Map<String,​String> getMetaData()
        从类复制的说明: AbstractConfig

        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 AbstractConfig.refresh() method handles attribute overrides.

        The default value of the field should be set in the AbstractConfig.checkDefault() method, which will be called at the end of AbstractConfig.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().
        覆盖:
        getMetaData 在类中 AbstractConfig
        另请参阅:
        AbstractConfig.checkDefault(), AbstractConfig.appendParameters(Map, Object, String)
      • getServiceInterfaceClass

        public Class<?> getServiceInterfaceClass()
        Get service interface class of this reference. The actual service type of remote provider.
        返回:
      • getInterfaceClass

        public Class<?> getInterfaceClass()
        Get proxy interface class of this reference. The proxy interface class is used to create proxy instance.
        返回:
      • determineInterfaceClass

        public static Class<?> determineInterfaceClass​(String generic,
                                                       String interfaceName)
        Determine the interface of the proxy class
        参数:
        generic -
        interfaceName -
        返回:
      • determineInterfaceClass

        public static Class<?> determineInterfaceClass​(String generic,
                                                       String interfaceName,
                                                       ClassLoader classLoader)
      • setInterface

        public void setInterface​(Class<?> interfaceClass)
      • getClient

        public String getClient()
      • setClient

        public void setClient​(String client)
      • setUrl

        public void setUrl​(String url)
      • getProtocol

        public String getProtocol()
      • setProtocol

        public void setProtocol​(String protocol)
      • shouldReferAsync

        public Boolean shouldReferAsync()
      • get

        public abstract T get()
      • destroy

        public void destroy()