类 ConfigCenterBean
- java.lang.Object
-
- org.apache.dubbo.config.AbstractConfig
-
- org.apache.dubbo.config.ConfigCenterConfig
-
- org.apache.dubbo.config.spring.ConfigCenterBean
-
- 所有已实现的接口:
Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.DisposableBean,org.springframework.context.ApplicationContextAware,org.springframework.context.EnvironmentAware
public class ConfigCenterBean extends ConfigCenterConfig implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.DisposableBean, org.springframework.context.EnvironmentAware
Start from 2.7.0+, export and refer will only be executed when Spring is fully initialized, and each Config bean will get refreshed on the start of the export and refer process. So it's ok for this bean not to be the first Dubbo Config bean being initialized.- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 ConfigCenterBean()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddestroy()org.springframework.context.ApplicationContextgetApplicationContext()BooleangetIncludeSpringEnv()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetEnvironment(org.springframework.core.env.Environment environment)voidsetIncludeSpringEnv(Boolean includeSpringEnv)-
从类继承的方法 org.apache.dubbo.config.ConfigCenterConfig
checkOrUpdateInited, 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, setNamespace, setParameters, setPassword, setPort, setProtocol, setTimeout, setUsername, toUrl, updateParameters
-
从类继承的方法 org.apache.dubbo.config.AbstractConfig
addIntoConfigManager, appendParameters, appendParameters, equals, getId, getMetaData, getPrefix, getTagName, hashCode, isDefault, refresh, setDefault, setId, setPrefix, toString, updateIdIfAbsent
-
-
-
-
方法详细资料
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- 指定者:
setApplicationContext在接口中org.springframework.context.ApplicationContextAware
-
destroy
public void destroy() throws Exception- 指定者:
destroy在接口中org.springframework.beans.factory.DisposableBean- 抛出:
Exception
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- 指定者:
setEnvironment在接口中org.springframework.context.EnvironmentAware
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
-
getIncludeSpringEnv
public Boolean getIncludeSpringEnv()
-
setIncludeSpringEnv
public void setIncludeSpringEnv(Boolean includeSpringEnv)
-
-