Class ConfigCenterBean

All Implemented Interfaces:
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
Starting from 2.7.0+, export and refer will only be executed when Spring is fully initialized.

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.

See Also:
  • Constructor Details

    • ConfigCenterBean

      public ConfigCenterBean()
    • ConfigCenterBean

      public ConfigCenterBean(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception
    • setEnvironment

      public void setEnvironment(org.springframework.core.env.Environment environment)
      Specified by:
      setEnvironment in interface org.springframework.context.EnvironmentAware
    • getApplicationContext

      public org.springframework.context.ApplicationContext getApplicationContext()
    • getIncludeSpringEnv

      public Boolean getIncludeSpringEnv()
    • setIncludeSpringEnv

      public void setIncludeSpringEnv(Boolean includeSpringEnv)