public abstract class ServiceConfigBase<T> extends AbstractServiceConfig
| 构造器和说明 |
|---|
ServiceConfigBase() |
ServiceConfigBase(ModuleModel moduleModel) |
ServiceConfigBase(ModuleModel moduleModel,
Service service) |
ServiceConfigBase(Service service) |
getAccesslog, getDocument, getExecutes, getExecutor, getExportAsync, getFilter, getListener, getPreferSerialization, getProtocol, getProtocolIds, getProtocols, getSerialization, getToken, getWarmup, getWeight, isDeprecated, isDynamic, isRegister, setAccesslog, setAccesslog, setDelay, setDeprecated, setDocument, setDynamic, setExecutes, setExecutor, setExport, setExportAsync, setGroup, setListener, 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, isRefreshed, isValid, overrideWithConfig, refresh, setDefault, setId, setScopeModel, toStringpublic ServiceConfigBase()
public ServiceConfigBase(ModuleModel moduleModel)
public ServiceConfigBase(Service service)
public ServiceConfigBase(ModuleModel moduleModel, Service service)
public boolean shouldExport()
public Boolean getExport()
getExport 在类中 AbstractServiceConfigpublic boolean shouldDelay()
public Integer getDelay()
getDelay 在类中 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().public Map<String,String> getMetaData(String prefix)
getMetaData 在类中 AbstractConfigpublic Class<?> getInterfaceClass()
public void setInterfaceClass(Class<?> interfaceClass)
interfaceClass - setInterface(Class)public void setInterface(Class<?> interfaceClass)
public 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 在类中 AbstractConfig@Parameter(excluded=true, attribute=false) public String getUniqueServiceName()
public String getGroup()
getGroup 在类中 AbstractServiceConfigpublic String getVersion()
getVersion 在类中 AbstractServiceConfigpublic Boolean shouldExportAsync()
public abstract void export()
public abstract void unexport()
public abstract boolean isExported()
public abstract boolean isUnexported()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.