类 ServiceConfigBase<T>
- java.lang.Object
-
- org.apache.dubbo.config.AbstractConfig
-
- org.apache.dubbo.config.AbstractMethodConfig
-
- org.apache.dubbo.config.AbstractInterfaceConfig
-
- org.apache.dubbo.config.AbstractServiceConfig
-
- org.apache.dubbo.config.ServiceConfigBase<T>
-
- 所有已实现的接口:
Serializable
- 直接已知子类:
ServiceConfig
public abstract class ServiceConfigBase<T> extends AbstractServiceConfig
ServiceConfig- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 ServiceConfigBase()ServiceConfigBase(Service service)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 已过时的方法 修饰符和类型 方法 说明 abstract voidexport()Optional<String>getContextPath(ProtocolConfig protocolConfig)IntegergetDelay()BooleangetExport()StringgetGeneric()StringgetGroup()Class<?>getInterfaceClass()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.StringgetPath()List<String>getPrefixes()ProviderConfiggetProvider()StringgetProviderIds()TgetRef()ServiceMetadatagetServiceMetadata()StringgetUniqueServiceName()StringgetVersion()abstract booleanisExported()abstract booleanisUnexported()voidsetGeneric(String generic)voidsetInterface(Class<?> interfaceClass)voidsetInterfaceClass(Class<?> interfaceClass)已过时。voidsetPath(String path)voidsetProvider(ProviderConfig provider)voidsetProviderIds(String providerIds)voidsetRef(T ref)booleanshouldDelay()booleanshouldExport()BooleanshouldExportAsync()abstract voidunexport()-
从类继承的方法 org.apache.dubbo.config.AbstractServiceConfig
getAccesslog, getDocument, getExecutes, getExportAsync, getFilter, getListener, getProtocol, getProtocolIds, getProtocols, getSerialization, getToken, getWarmup, getWeight, isDeprecated, isDynamic, isRegister, setAccesslog, setAccesslog, setDelay, setDeprecated, setDocument, setDynamic, setExecutes, setExport, setExportAsync, setGroup, setListener, setProtocol, setProtocolIds, setProtocols, setRegister, setSerialization, setToken, setToken, setVersion, setWarmup, setWeight
-
从类继承的方法 org.apache.dubbo.config.AbstractInterfaceConfig
appendRuntimeParameters, getApplication, getAuth, getCallbacks, getCluster, getConfigCenter, getConnections, getExportedUrls, getGroup, getInterface, 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, setInterface, setLayer, setLocal, setLocal, setMetadataReportConfig, setMethods, setMetrics, setModule, setMonitor, setMonitor, setOnconnect, setOndisconnect, setOwner, setProxy, setRegistries, setRegistry, setRegistryIds, setScope, setStub, setStub, setTag, 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
-
-
-
-
构造器详细资料
-
ServiceConfigBase
public ServiceConfigBase()
-
ServiceConfigBase
public ServiceConfigBase(Service service)
-
-
方法详细资料
-
shouldExport
public boolean shouldExport()
-
getExport
public Boolean getExport()
- 覆盖:
getExport在类中AbstractServiceConfig
-
shouldDelay
public boolean shouldDelay()
-
getDelay
public Integer getDelay()
- 覆盖:
getDelay在类中AbstractServiceConfig
-
getContextPath
public Optional<String> getContextPath(ProtocolConfig protocolConfig)
-
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().
-
getInterfaceClass
public Class<?> getInterfaceClass()
-
setInterfaceClass
public void setInterfaceClass(Class<?> interfaceClass)
已过时。- 参数:
interfaceClass-- 另请参阅:
setInterface(Class)
-
setInterface
public void setInterface(Class<?> interfaceClass)
-
getRef
public T getRef()
-
setRef
public void setRef(T ref)
-
getPath
@Parameter(excluded=true) public String getPath()
-
setPath
public void setPath(String path)
-
getProvider
public ProviderConfig getProvider()
-
setProvider
public void setProvider(ProviderConfig provider)
-
getProviderIds
@Parameter(excluded=true) public String getProviderIds()
-
setProviderIds
public void setProviderIds(String providerIds)
-
getGeneric
public String getGeneric()
-
setGeneric
public void setGeneric(String generic)
-
getServiceMetadata
public ServiceMetadata getServiceMetadata()
-
getPrefixes
@Parameter(excluded=true, attribute=false) public List<String> getPrefixes()
- 覆盖:
getPrefixes在类中AbstractConfig
-
getUniqueServiceName
@Parameter(excluded=true) public String getUniqueServiceName()
-
getGroup
public String getGroup()
- 覆盖:
getGroup在类中AbstractServiceConfig
-
getVersion
public String getVersion()
- 覆盖:
getVersion在类中AbstractServiceConfig
-
shouldExportAsync
public Boolean shouldExportAsync()
-
export
public abstract void export()
-
unexport
public abstract void unexport()
-
isExported
public abstract boolean isExported()
-
isUnexported
public abstract boolean isUnexported()
-
-