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 |
|---|---|
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) |
abstract T |
get() |
String |
getClient() |
ConsumerConfig |
getConsumer() |
String |
getGroup() |
String |
getInterface() |
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 is to get the attributes set by the user instead of the default value when the
AbstractConfig.refresh() method handles attribute overrides. |
List<String> |
getPrefixes() |
String |
getProtocol() |
Class<?> |
getServiceInterfaceClass()
Get service interface class of this reference.
|
ServiceMetadata |
getServiceMetadata() |
String |
getUniqueServiceName() |
String |
getUrl() |
String |
getVersion() |
void |
setClient(String client) |
void |
setConsumer(ConsumerConfig consumer) |
void |
setInterface(Class<?> interfaceClass) |
void |
setInterface(String interfaceName) |
void |
setProtocol(String protocol) |
void |
setUrl(String url) |
boolean |
shouldCheck() |
boolean |
shouldInit() |
Boolean |
shouldReferAsync() |
getFilter, getGeneric, getLazy, getListener, getProvidedBy, getReconnect, getReferAsync, getRouter, getSticky, getStubevent, isCheck, isGeneric, isInit, isInjvm, setCheck, setGeneric, setGeneric, setInit, setInjvm, setLazy, setListener, setOnconnect, setOndisconnect, setProvidedBy, setReconnect, setReferAsync, setRouter, setStickyaddMethod, appendRuntimeParameters, getApplication, getAuth, getCallbacks, getCluster, getConfigCenter, getConnections, getExportedUrls, getGroup, getInterfaceClassLoader, getLayer, getLocal, getMetadataReportConfig, getMethods, getModule, getMonitor, getOnconnect, getOndisconnect, getOwner, getProxy, getRegistries, getRegistry, getRegistryIds, getScope, getSslConfig, getStub, getTag, getVersion, setApplication, setAuth, setCallbacks, setCluster, setConfigCenter, setConnections, setFilter, setGroup, setInterfaceClassLoader, setLayer, setLocal, setLocal, setMetadataReportConfig, setMethods, setModule, setMonitor, setMonitor, setOwner, setProxy, setRegistries, setRegistry, setRegistryIds, setScope, 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, appendParameters, appendParameters, equals, getApplicationModel, getId, getPluralTagName, getTagName, getTypePrefix, hashCode, isDefault, isRefreshed, isValid, refresh, setDefault, setId, 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 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 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 String getInterface()
getInterface in class AbstractInterfaceConfigpublic void setInterface(String interfaceName)
setInterface in class AbstractInterfaceConfigpublic void setInterface(Class<?> interfaceClass)
public String getClient()
public void setClient(String client)
@Parameter(excluded=true) public String getUrl()
public void setUrl(String url)
public ConsumerConfig getConsumer()
public void setConsumer(ConsumerConfig consumer)
public String getProtocol()
public void setProtocol(String protocol)
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()
public void destroy()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.