类 ModuleEnvironment
- java.lang.Object
-
- org.apache.dubbo.common.context.LifecycleAdapter
-
- org.apache.dubbo.common.config.Environment
-
- org.apache.dubbo.common.config.ModuleEnvironment
-
- 所有已实现的接口:
ApplicationExt,Lifecycle,ModuleExt,Disposable
public class ModuleEnvironment extends Environment implements ModuleExt
-
-
构造器概要
构造器 构造器 说明 ModuleEnvironment(ModuleModel moduleModel)
-
方法概要
-
从类继承的方法 org.apache.dubbo.common.config.Environment
getConfigurationMaps, reset, resolvePlaceholders
-
从类继承的方法 org.apache.dubbo.common.context.LifecycleAdapter
start
-
-
-
-
构造器详细资料
-
ModuleEnvironment
public ModuleEnvironment(ModuleModel moduleModel)
-
-
方法详细资料
-
initialize
public void initialize() throws IllegalStateException从接口复制的说明:LifecycleInitialize the component beforestart- 指定者:
initialize在接口中Lifecycle- 覆盖:
initialize在类中Environment- 抛出:
IllegalStateException
-
getPrefixedConfiguration
public Configuration getPrefixedConfiguration(AbstractConfig config, String prefix)
从类复制的说明:EnvironmentAt start-up, Dubbo is driven by various configuration, such as Application, Registry, Protocol, etc. All configurations will be converged into a data bus - URL, and then drive the subsequent process.At present, there are many configuration sources, including AbstractConfig (API, XML, annotation), - D, config center, etc. This methood helps us t filter out the most priority values from various configuration sources.
- 覆盖:
getPrefixedConfiguration在类中Environment- 返回:
-
getConfiguration
public CompositeConfiguration getConfiguration()
从类复制的说明:EnvironmentThere are two ways to get configuration during exposure / reference or at runtime: 1. URL, The value in the URL is relatively fixed. we can get value directly. 2. The configuration exposed in this method is convenient for us to query the latest values from multiple prioritized sources, it also guarantees that configs changed dynamically can take effect on the fly.- 覆盖:
getConfiguration在类中Environment
-
getConfigurationMaps
public List<Map<String,String>> getConfigurationMaps(AbstractConfig config, String prefix)
从类复制的说明:EnvironmentGet configuration map list for target instance- 覆盖:
getConfigurationMaps在类中Environment- 返回:
-
getDynamicGlobalConfiguration
public Configuration getDynamicGlobalConfiguration()
-
getDynamicConfiguration
public Optional<DynamicConfiguration> getDynamicConfiguration()
- 覆盖:
getDynamicConfiguration在类中Environment
-
setDynamicConfiguration
@DisableInject public void setDynamicConfiguration(DynamicConfiguration dynamicConfiguration)
- 覆盖:
setDynamicConfiguration在类中Environment
-
destroy
public void destroy() throws IllegalStateException从接口复制的说明:LifecycleDestroy the component- 指定者:
destroy在接口中Disposable- 指定者:
destroy在接口中Lifecycle- 覆盖:
destroy在类中Environment- 抛出:
IllegalStateException
-
setLocalMigrationRule
public void setLocalMigrationRule(String localMigrationRule)
- 覆盖:
setLocalMigrationRule在类中Environment
-
setExternalConfigMap
public void setExternalConfigMap(Map<String,String> externalConfiguration)
- 覆盖:
setExternalConfigMap在类中Environment
-
setAppExternalConfigMap
public void setAppExternalConfigMap(Map<String,String> appExternalConfiguration)
- 覆盖:
setAppExternalConfigMap在类中Environment
-
setAppConfigMap
public void setAppConfigMap(Map<String,String> appConfiguration)
- 覆盖:
setAppConfigMap在类中Environment
-
getExternalConfigMap
public Map<String,String> getExternalConfigMap()
- 覆盖:
getExternalConfigMap在类中Environment
-
getAppExternalConfigMap
public Map<String,String> getAppExternalConfigMap()
- 覆盖:
getAppExternalConfigMap在类中Environment
-
getAppConfigMap
public Map<String,String> getAppConfigMap()
- 覆盖:
getAppConfigMap在类中Environment
-
updateExternalConfigMap
public void updateExternalConfigMap(Map<String,String> externalMap)
- 覆盖:
updateExternalConfigMap在类中Environment
-
updateAppConfigMap
public void updateAppConfigMap(Map<String,String> map)
从类复制的说明:EnvironmentMerge target map properties into app configuration- 覆盖:
updateAppConfigMap在类中Environment
-
getPropertiesConfiguration
public PropertiesConfiguration getPropertiesConfiguration()
-
getSystemConfiguration
public SystemConfiguration getSystemConfiguration()
- 覆盖:
getSystemConfiguration在类中Environment
-
getEnvironmentConfiguration
public EnvironmentConfiguration getEnvironmentConfiguration()
-
getExternalConfiguration
public InmemoryConfiguration getExternalConfiguration()
- 覆盖:
getExternalConfiguration在类中Environment
-
getAppExternalConfiguration
public InmemoryConfiguration getAppExternalConfiguration()
-
getAppConfiguration
public InmemoryConfiguration getAppConfiguration()
- 覆盖:
getAppConfiguration在类中Environment
-
getLocalMigrationRule
public String getLocalMigrationRule()
- 覆盖:
getLocalMigrationRule在类中Environment
-
refreshClassLoaders
public void refreshClassLoaders()
- 覆盖:
refreshClassLoaders在类中Environment
-
-