类 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)
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract void
destroy()
static Class<?>
determineInterfaceClass(String generic, String interfaceName)
Determine the interface of the proxy classabstract T
get()
Class<?>
getActualInterface()
Get actual interface class of this reference.String
getClient()
ConsumerConfig
getConsumer()
String
getGroup()
String
getInterface()
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()
String
getProtocol()
ServiceMetadata
getServiceMetadata()
String
getUniqueServiceName()
String
getUrl()
String
getVersion()
void
setClient(String client)
void
setConsumer(ConsumerConfig consumer)
void
setInterface(Class<?> interfaceClass)
void
setInterface(String interfaceName)
void
setProtocol(String protocol)
void
setUrl(String url)
boolean
shouldCheck()
boolean
shouldInit()
Boolean
shouldReferAsync()
-
从类继承的方法 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
appendRuntimeParameters, getApplication, getAuth, getCallbacks, getCluster, getConfigCenter, getConnections, getExportedUrls, getGroup, getLayer, getLocal, getMetadataReportConfig, getMethods, getMetrics, getModule, getMonitor, getOnconnect, getOndisconnect, getOwner, getProxy, getRegistries, getRegistry, getRegistryIds, getScope, getSslConfig, getStub, getTag, getVersion, setApplication, setAuth, setCallbacks, setCluster, setConfigCenter, setConnections, setFilter, setGroup, setLayer, setLocal, setLocal, setMetadataReportConfig, setMethods, setMetrics, setModule, setMonitor, setMonitor, setOwner, setProxy, setRegistries, setRegistry, setRegistryIds, setScope, setStub, setStub, setTag, setVersion, toUrl, toUrls
-
从类继承的方法 org.apache.dubbo.config.AbstractMethodConfig
getActives, getCache, getForks, getLoadbalance, getMerger, getMock, getParameters, getRetries, getSent, getTimeout, getValidation, isAsync, setActives, setAsync, setCache, setForks, setLoadbalance, setMerger, setMock, setMock, setParameters, setRetries, setSent, setTimeout, setValidation
-
从类继承的方法 org.apache.dubbo.config.AbstractConfig
addIntoConfigManager, appendAttributes, appendParameters, appendParameters, equals, getId, getPluralTagName, getTagName, getTypePrefix, hashCode, isDefault, isRefreshed, isValid, refresh, setDefault, setId, toString, updateIdIfAbsent
-
-
-
-
构造器详细资料
-
ReferenceConfigBase
public ReferenceConfigBase()
-
ReferenceConfigBase
public ReferenceConfigBase(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()
从类复制的说明: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
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().
-
getActualInterface
public Class<?> getActualInterface()
Get actual 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
-- 返回:
-
getInterface
public String getInterface()
- 覆盖:
getInterface
在类中AbstractInterfaceConfig
-
setInterface
public void setInterface(String interfaceName)
- 覆盖:
setInterface
在类中AbstractInterfaceConfig
-
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) 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 abstract void destroy()
-
-