public abstract class ServiceConfigBase<T> extends AbstractServiceConfig
| Constructor and Description |
|---|
ServiceConfigBase() |
ServiceConfigBase(ModuleModel moduleModel) |
ServiceConfigBase(ModuleModel moduleModel,
Service service) |
ServiceConfigBase(Service service) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSkipInterfaceCheck()
it is used for skipping the check of interface since dubbo 3.2
rest protocol allow the service is implement class
|
void |
export()
export service and auto start application instance
|
abstract void |
export(RegisterTypeEnum registerType)
Export service to network
|
Optional<String> |
getContextPath(ProtocolConfig protocolConfig) |
Integer |
getDelay() |
Boolean |
getExport() |
String |
getGeneric() |
String |
getGroup() |
Class<?> |
getInterfaceClass() |
Map<String,String> |
getMetaData()
The new instance of the AbstractConfig subclass should return empty metadata.
The purpose is to get the attributes set by the user instead of the default value when the
AbstractConfig.refresh() method handles attribute overrides. |
Map<String,String> |
getMetaData(String prefix) |
String |
getPath() |
List<String> |
getPrefixes() |
ProviderConfig |
getProvider() |
String |
getProviderIds() |
T |
getRef() |
ServiceMetadata |
getServiceMetadata() |
String |
getUniqueServiceName() |
String |
getVersion() |
abstract boolean |
isExported() |
abstract boolean |
isUnexported() |
void |
register()
Register delay published service to registry.
|
abstract void |
register(boolean byDeployer)
Register delay published service to registry.
|
void |
setGeneric(String generic) |
void |
setInterface(Class<?> interfaceClass) |
void |
setInterfaceClass(Class<?> interfaceClass)
Deprecated.
|
void |
setPath(String path) |
void |
setProvider(ProviderConfig provider) |
void |
setProviderIds(String providerIds) |
void |
setRef(T ref) |
boolean |
shouldDelay() |
boolean |
shouldExport() |
Boolean |
shouldExportAsync() |
abstract void |
unexport() |
getAccesslog, getDocument, getExecutes, getExecutor, getExportAsync, getFilter, getListener, getPayload, getPreferSerialization, getProtocol, getProtocolIds, getProtocols, getSerialization, getToken, getWarmup, getWeight, isDeprecated, isDynamic, isRegister, setAccesslog, setAccesslog, setDelay, setDeprecated, setDocument, setDynamic, setExecutes, setExecutor, setExport, setExportAsync, setGroup, setListener, setPayload, setPreferSerialization, setProtocol, setProtocolIds, setProtocols, setRegister, setSerialization, setToken, setToken, setVersion, setWarmup, setWeightaddMethod, 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, setInterface, setInterfaceClassLoader, setLayer, setLocal, setLocal, setMetadataReportConfig, setMethods, setModule, setMonitor, setMonitor, setOnconnect, setOndisconnect, setOwner, setProxy, setRegistries, setRegistry, setRegistryIds, setScope, setSingleton, setStub, setStub, setTag, toUrl, toUrlsgetActives, getCache, getForks, getLoadbalance, getMerger, getMock, getParameters, getRetries, getScopeModel, getSent, getTimeout, getValidation, isAsync, setActives, setAsync, setCache, setForks, setLoadbalance, setMerger, setMock, setMock, setParameters, setRetries, setSent, setTimeout, setValidationappendAttributes, appendAttributes, appendParameters, appendParameters, equals, getApplicationModel, getConfigMode, getId, getPluralTagName, getTagName, getTypePrefix, hashCode, isDefault, isNeedRefresh, isRefreshed, isValid, overrideWithConfig, refresh, setDefault, setId, setNeedRefresh, setScopeModel, toStringpublic ServiceConfigBase()
public ServiceConfigBase(ModuleModel moduleModel)
public ServiceConfigBase(Service service)
public ServiceConfigBase(ModuleModel moduleModel, Service service)
public boolean shouldExport()
public Boolean getExport()
getExport in class AbstractServiceConfigpublic boolean shouldDelay()
public Integer getDelay()
getDelay in class AbstractServiceConfigpublic Optional<String> getContextPath(ProtocolConfig protocolConfig)
public Map<String,String> getMetaData()
AbstractConfig
The new instance of the AbstractConfig subclass should return empty metadata.
The purpose 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.
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 in class AbstractConfigAbstractConfig.checkDefault(),
AbstractConfig.appendParameters(Map, Object, String)public Map<String,String> getMetaData(String prefix)
getMetaData in class AbstractConfigpublic Class<?> getInterfaceClass()
public void setInterfaceClass(Class<?> interfaceClass)
interfaceClass - setInterface(Class)public void setInterface(Class<?> interfaceClass)
public boolean canSkipInterfaceCheck()
AbstractInterfaceConfigpublic T getRef()
public void setRef(T ref)
@Parameter(excluded=true) public String getPath()
public void setPath(String path)
public ProviderConfig getProvider()
public void setProvider(ProviderConfig provider)
@Parameter(excluded=true) public String getProviderIds()
public void setProviderIds(String providerIds)
public String getGeneric()
public void setGeneric(String generic)
public ServiceMetadata getServiceMetadata()
@Parameter(excluded=true, attribute=false) public List<String> getPrefixes()
getPrefixes in class AbstractConfig@Parameter(excluded=true, attribute=false) public String getUniqueServiceName()
public String getGroup()
getGroup in class AbstractServiceConfigpublic String getVersion()
getVersion in class AbstractServiceConfigpublic Boolean shouldExportAsync()
public final void export()
public abstract void unexport()
public abstract boolean isExported()
public abstract boolean isUnexported()
public abstract void export(RegisterTypeEnum registerType)
registerType - register type of current export action.public final void register()
public abstract void register(boolean byDeployer)
byDeployer - register by deployer or not.Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.