public abstract class ReferenceConfigBase<T> extends AbstractReferenceConfig
| Constructor and Description |
|---|
ReferenceConfigBase() |
ReferenceConfigBase(ModuleModel moduleModel) |
ReferenceConfigBase(ModuleModel moduleModel,
Reference reference) |
ReferenceConfigBase(Reference reference) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
checkOrDestroy(long timeout) |
void |
destroy() |
static Class<?> |
determineInterfaceClass(String generic,
String interfaceName)
Determine the interface of the proxy class
|
static Class<?> |
determineInterfaceClass(String generic,
String interfaceName,
ClassLoader classLoader) |
T |
get() |
abstract T |
get(boolean check) |
ConsumerConfig |
getConsumer() |
String |
getGroup() |
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 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) |
List<String> |
getPrefixes() |
Class<?> |
getServiceInterfaceClass()
Get service interface class of this reference.
|
ServiceMetadata |
getServiceMetadata() |
String |
getUniqueServiceName() |
Boolean |
getUnloadClusterRelated() |
String |
getUrl() |
String |
getVersion() |
void |
setConsumer(ConsumerConfig consumer) |
void |
setInterface(Class<?> interfaceClass) |
void |
setUnloadClusterRelated(Boolean unloadClusterRelated) |
void |
setUrl(String url) |
boolean |
shouldCheck() |
boolean |
shouldInit() |
Boolean |
shouldReferAsync() |
getClient, getFilter, getGeneric, getLazy, getListener, getProtocol, getProvidedBy, getProviderNamespace, getProviderPort, getReconnect, getReferAsync, getRouter, getSticky, getStubevent, isCheck, isGeneric, isInit, isInjvm, setCheck, setClient, setGeneric, setGeneric, setInit, setInjvm, setLazy, setListener, setOnconnect, setOndisconnect, setProtocol, setProvidedBy, setProviderNamespace, setProviderPort, setReconnect, setReferAsync, setRouter, setStickyaddMethod, 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, setGroup, setInterface, setInterfaceClassLoader, setLayer, setLocal, setLocal, setMetadataReportConfig, setMethods, setModule, setMonitor, setMonitor, setOwner, setProxy, setRegistries, setRegistry, setRegistryIds, setScope, setSingleton, setStub, setStub, setTag, setVersion, 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 ReferenceConfigBase()
public ReferenceConfigBase(ModuleModel moduleModel)
public ReferenceConfigBase(Reference reference)
public ReferenceConfigBase(ModuleModel moduleModel, Reference reference)
public boolean shouldCheck()
public boolean shouldInit()
@Parameter(excluded=true, attribute=false) public List<String> getPrefixes()
getPrefixes in class AbstractConfigpublic 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<?> getServiceInterfaceClass()
public Class<?> getInterfaceClass()
public static Class<?> determineInterfaceClass(String generic, String interfaceName)
generic - interfaceName - public static Class<?> determineInterfaceClass(String generic, String interfaceName, ClassLoader classLoader)
public void setInterface(Class<?> interfaceClass)
@Parameter(excluded=true) public String getUrl()
public void setUrl(String url)
public ConsumerConfig getConsumer()
public void setConsumer(ConsumerConfig consumer)
@Parameter(key="unloadClusterRelated") public Boolean getUnloadClusterRelated()
public void setUnloadClusterRelated(Boolean unloadClusterRelated)
public ServiceMetadata getServiceMetadata()
@Parameter(excluded=true, attribute=false) public String getUniqueServiceName()
public String getVersion()
getVersion in class AbstractInterfaceConfigpublic String getGroup()
getGroup in class AbstractInterfaceConfigpublic Boolean shouldReferAsync()
public abstract T get(boolean check)
public abstract void checkOrDestroy(long timeout)
public final T get()
public void destroy()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.