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 |
|---|---|
abstract void |
export()
export service and auto start application instance
|
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 |
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, 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, 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 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 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 abstract void export()
public abstract void unexport()
public abstract boolean isExported()
public abstract boolean isUnexported()
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.