public class ConfigurationSpringInitializer
extends org.springframework.context.support.PropertySourcesPlaceholderConfigurer
implements org.springframework.context.EnvironmentAware
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTERNAL_INIT |
static String |
EXTRA_CONFIG_SOURCE_PREFIX |
static String |
MAPPING_PROPERTY_SOURCE_NAME |
static String |
MICROSERVICE_PROPERTY_SOURCE_NAME |
ENVIRONMENT_PROPERTIES_PROPERTY_SOURCE_NAME, LOCAL_PROPERTIES_PROPERTY_SOURCE_NAMEDEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, trimValues, valueSeparator| Constructor and Description |
|---|
ConfigurationSpringInitializer() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isExternalInit() |
protected Properties |
mergeProperties() |
void |
onConfigurationDataChanged(org.apache.servicecomb.config.event.DynamicConfigurationChangedEvent event) |
void |
setEnvironment(org.springframework.core.env.Environment environment)
Get configurations from Spring, merge them into the configurations of ServiceComb.
|
static void |
setExternalInit(boolean value) |
static void |
syncToSpring(org.springframework.core.env.Environment environment) |
getAppliedPropertySources, postProcessBeanFactory, processProperties, processProperties, setPropertySourcesdoProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setTrimValues, setValueSeparatorconvertProperties, convertProperty, convertPropertyValue, getOrder, setOrderpublic static final String EXTRA_CONFIG_SOURCE_PREFIX
public static final String MICROSERVICE_PROPERTY_SOURCE_NAME
public static final String MAPPING_PROPERTY_SOURCE_NAME
public static final String EXTERNAL_INIT
public static void setExternalInit(boolean value)
public static boolean isExternalInit()
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAwaresetEnvironment in class org.springframework.context.support.PropertySourcesPlaceholderConfigurerenvironment - From which to get the extra config.public void onConfigurationDataChanged(org.apache.servicecomb.config.event.DynamicConfigurationChangedEvent event)
public static void syncToSpring(org.springframework.core.env.Environment environment)
protected Properties mergeProperties() throws IOException
mergeProperties in class org.springframework.core.io.support.PropertiesLoaderSupportIOExceptionCopyright © 2017–2022 The Apache Software Foundation. All rights reserved.