| Modifier and Type | Method and Description |
|---|---|
Configuration |
URL.toConfiguration() |
| Modifier and Type | Class and Description |
|---|---|
class |
CompositeConfiguration
This is an abstraction specially customized for the sequence Dubbo retrieves properties.
|
class |
EnvironmentConfiguration
Configuration from system environment
|
class |
InmemoryConfiguration
In-memory configuration
|
class |
PropertiesConfiguration
Configuration from system properties and dubbo.properties
|
class |
SystemConfiguration
FIXME: is this really necessary? PropertiesConfiguration should have already covered this:
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
Environment.getConfiguration()
There are two ways to get configuration during exposure / reference or at runtime:
1.
|
static Configuration |
ConfigurationUtils.getDynamicGlobalConfiguration() |
Configuration |
Environment.getDynamicGlobalConfiguration() |
static Configuration |
ConfigurationUtils.getEnvConfiguration()
Used to get properties from the os environment
|
static Configuration |
ConfigurationUtils.getGlobalConfiguration()
Used to get an composite property value.
|
static Configuration |
ConfigurationUtils.getSystemConfiguration()
Used to get properties from the jvm
|
| Modifier and Type | Method and Description |
|---|---|
void |
CompositeConfiguration.addConfiguration(Configuration configuration) |
void |
CompositeConfiguration.addConfiguration(int pos,
Configuration configuration) |
void |
CompositeConfiguration.addConfigurationFirst(Configuration configuration) |
| Constructor and Description |
|---|
CompositeConfiguration(Configuration... configurations) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
DynamicConfiguration
Dynamic Configuration
From the use scenario internally inside framework, there're mainly three kinds of methods: DynamicConfiguration.getProperties(String, String, long), get configuration file from Config Center at start up.
DynamicConfiguration.addListener(String, String, ConfigurationListener)/ DynamicConfiguration.removeListener(String, String, ConfigurationListener)
, add or remove listeners for governance rules or config items that need to watch.
getProperty(String, Object), get a single config item.
DynamicConfiguration.getConfig(String, String, long), get the specified config
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDynamicConfiguration
The abstract implementation of
DynamicConfiguration |
class |
TreePathDynamicConfiguration
An abstract implementation of
DynamicConfiguration is like "tree-structure" path :
"file"
"zookeeper"
"consul"
|
| Modifier and Type | Class and Description |
|---|---|
class |
FileSystemDynamicConfiguration
File-System based
DynamicConfiguration implementation |
| Modifier and Type | Class and Description |
|---|---|
class |
NopDynamicConfiguration
Deprecated.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CompositeDynamicConfiguration
support multiple config center, simply iterating each concrete config center.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ConfigConfigurationAdapter
This class receives an
AbstractConfig and exposes its attributes through Configuration |
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.