public class CachedCompositePropertySource extends org.springframework.core.env.CompositePropertySource implements ConfigChangeListener
| Constructor and Description |
|---|
CachedCompositePropertySource(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFirstPropertySource(org.springframework.core.env.PropertySource<?> propertySource) |
void |
addPropertySource(org.springframework.core.env.PropertySource<?> propertySource) |
String[] |
getPropertyNames() |
void |
onChange(ConfigChangeEvent changeEvent)
Invoked when there is any config change for the namespace.
|
containsProperty, getProperty, getPropertySources, toStringpublic CachedCompositePropertySource(String name)
public String[] getPropertyNames()
getPropertyNames in class org.springframework.core.env.CompositePropertySourcepublic void addPropertySource(org.springframework.core.env.PropertySource<?> propertySource)
addPropertySource in class org.springframework.core.env.CompositePropertySourcepublic void addFirstPropertySource(org.springframework.core.env.PropertySource<?> propertySource)
addFirstPropertySource in class org.springframework.core.env.CompositePropertySourcepublic void onChange(ConfigChangeEvent changeEvent)
ConfigChangeListeneronChange in interface ConfigChangeListenerchangeEvent - the event for this changeCopyright © 2022 Ctrip, Inc.. All rights reserved.