类 ReferenceConfigBase<T>
- java.lang.Object
-
- org.apache.dubbo.config.AbstractConfig
-
- org.apache.dubbo.config.AbstractMethodConfig
-
- org.apache.dubbo.config.AbstractInterfaceConfig
-
- org.apache.dubbo.config.AbstractReferenceConfig
-
- org.apache.dubbo.config.ReferenceConfigBase<T>
-
- 所有已实现的接口:
Serializable
public abstract class ReferenceConfigBase<T> extends AbstractReferenceConfig
ReferenceConfig- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 ReferenceConfigBase()ReferenceConfigBase(Reference reference)ReferenceConfigBase(ModuleModel moduleModel)ReferenceConfigBase(ModuleModel moduleModel, Reference reference)
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 voiddestroy()static Class<?>determineInterfaceClass(String generic, String interfaceName)Determine the interface of the proxy classstatic Class<?>determineInterfaceClass(String generic, String interfaceName, ClassLoader classLoader)abstract Tget()StringgetClient()ConsumerConfiggetConsumer()StringgetGroup()Class<?>getInterfaceClass()Get proxy interface class of this reference.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 theAbstractConfig.refresh()method handles attribute overrides.List<String>getPrefixes()StringgetProtocol()Class<?>getServiceInterfaceClass()Get service interface class of this reference.ServiceMetadatagetServiceMetadata()StringgetUniqueServiceName()StringgetUrl()StringgetVersion()voidsetClient(String client)voidsetConsumer(ConsumerConfig consumer)voidsetInterface(Class<?> interfaceClass)voidsetProtocol(String protocol)voidsetUrl(String url)booleanshouldCheck()booleanshouldInit()BooleanshouldReferAsync()-
从类继承的方法 org.apache.dubbo.config.AbstractReferenceConfig
getFilter, getGeneric, getLazy, getListener, getProvidedBy, getReconnect, getReferAsync, getRouter, getSticky, getStubevent, isCheck, isGeneric, isInit, isInjvm, setCheck, setGeneric, setGeneric, setInit, setInjvm, setLazy, setListener, setOnconnect, setOndisconnect, setProvidedBy, setReconnect, setReferAsync, setRouter, setSticky
-
从类继承的方法 org.apache.dubbo.config.AbstractInterfaceConfig
addMethod, appendRuntimeParameters, getApplication, getAuth, getCallbacks, getCluster, getConfigCenter, getConnections, getExportedUrls, getGroup, getInterface, getInterfaceClassLoader, getLayer, getLocal, getMetadataReportConfig, getMethods, getModule, getMonitor, getOnconnect, getOndisconnect, getOwner, getProxy, getRegistries, getRegistry, getRegistryIds, getScope, getSingleton, getSslConfig, getStub, getTag, getVersion, setApplication, setAuth, setCallbacks, setCluster, setConfigCenter, setConnections, setFilter, setGroup, setInterface, setInterfaceClassLoader, setLayer, setLocal, setLocal, setMetadataReportConfig, setMethods, setModule, setMonitor, setMonitor, setOwner, setProxy, setRegistries, setRegistry, setRegistryIds, setScope, setSingleton, setStub, setStub, setTag, setVersion, toUrl, toUrls
-
从类继承的方法 org.apache.dubbo.config.AbstractMethodConfig
getActives, getCache, getForks, getLoadbalance, getMerger, getMock, getParameters, getRetries, getScopeModel, getSent, getTimeout, getValidation, isAsync, setActives, setAsync, setCache, setForks, setLoadbalance, setMerger, setMock, setMock, setParameters, setRetries, setSent, setTimeout, setValidation
-
从类继承的方法 org.apache.dubbo.config.AbstractConfig
appendAttributes, appendParameters, appendParameters, equals, getApplicationModel, getConfigMode, getId, getPluralTagName, getTagName, getTypePrefix, hashCode, isDefault, isRefreshed, isValid, overrideWithConfig, refresh, setDefault, setId, setScopeModel, toString
-
-
-
-
构造器详细资料
-
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()
-
getPrefixes
@Parameter(excluded=true, attribute=false) public List<String> getPrefixes()
- 覆盖:
getPrefixes在类中AbstractConfig
-
getMetaData
public Map<String,String> getMetaData()
从类复制的说明:AbstractConfigThe 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
Should be called after Config was fully initialized.AbstractConfig.checkDefault()method, which will be called at the end ofAbstractConfig.refresh(), so that it will not affect the behavior of attribute overrides.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().
-
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)
-
getUrl
@Parameter(excluded=true) public String getUrl()
-
setUrl
public void setUrl(String url)
-
getConsumer
public ConsumerConfig getConsumer()
-
setConsumer
public void setConsumer(ConsumerConfig consumer)
-
getProtocol
public String getProtocol()
-
setProtocol
public void setProtocol(String protocol)
-
getServiceMetadata
public ServiceMetadata getServiceMetadata()
-
getUniqueServiceName
@Parameter(excluded=true, attribute=false) public String getUniqueServiceName()
-
getVersion
public String getVersion()
- 覆盖:
getVersion在类中AbstractInterfaceConfig
-
getGroup
public String getGroup()
- 覆盖:
getGroup在类中AbstractInterfaceConfig
-
shouldReferAsync
public Boolean shouldReferAsync()
-
get
public abstract T get()
-
destroy
public void destroy()
-
-