public class ConfigCenterBean extends ConfigCenterConfig implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.DisposableBean, org.springframework.context.EnvironmentAware
Each Config bean will get refreshed on the start of the exporting and referring process.
So it's ok for this bean not to be the first Dubbo Config bean being initialized.
| Constructor and Description |
|---|
ConfigCenterBean() |
ConfigCenterBean(org.apache.dubbo.rpc.model.ApplicationModel applicationModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
org.springframework.context.ApplicationContext |
getApplicationContext() |
Boolean |
getIncludeSpringEnv() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
void |
setIncludeSpringEnv(Boolean includeSpringEnv) |
checkOrUpdateInitialized, getAddress, getAppConfigFile, getAppExternalConfiguration, getCluster, getConfigFile, getExternalConfiguration, getGroup, getNamespace, getParameters, getPassword, getPort, getProtocol, getTimeout, getUsername, isCheck, isHighestPriority, isValid, setAddress, setAppConfigFile, setAppExternalConfig, setCheck, setCluster, setConfigFile, setExternalConfig, setGroup, setHighestPriority, setInitialized, setNamespace, setParameters, setPassword, setPort, setProtocol, setTimeout, setUsername, toUrl, updateParametersappendAttributes, appendAttributes, appendParameters, appendParameters, equals, getApplicationModel, getConfigMode, getId, getMetaData, getMetaData, getPluralTagName, getPrefixes, getScopeModel, getTagName, getTypePrefix, hashCode, isDefault, isNeedRefresh, isRefreshed, overrideWithConfig, refresh, setDefault, setId, setNeedRefresh, setScopeModel, toStringpublic ConfigCenterBean()
public ConfigCenterBean(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAwarepublic org.springframework.context.ApplicationContext getApplicationContext()
public Boolean getIncludeSpringEnv()
public void setIncludeSpringEnv(Boolean includeSpringEnv)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.