public class PropertiesCompatibleFileConfigRepository extends AbstractConfigRepository implements ConfigFileChangeListener
| Constructor and Description |
|---|
PropertiesCompatibleFileConfigRepository(PropertiesCompatibleConfigFile configFile) |
| Modifier and Type | Method and Description |
|---|---|
Properties |
getConfig()
Get the config from this repository.
|
ConfigSourceType |
getSourceType()
Return the config's source type, i.e.
|
void |
onChange(ConfigFileChangeEvent changeEvent)
Invoked when there is any config change for the namespace.
|
void |
setUpstreamRepository(ConfigRepository upstreamConfigRepository)
Set the fallback repo for this repository.
|
addChangeListener, removeChangeListenerpublic PropertiesCompatibleFileConfigRepository(PropertiesCompatibleConfigFile configFile)
public Properties getConfig()
ConfigRepositorygetConfig in interface ConfigRepositorypublic void setUpstreamRepository(ConfigRepository upstreamConfigRepository)
ConfigRepositorysetUpstreamRepository in interface ConfigRepositoryupstreamConfigRepository - the upstream repopublic ConfigSourceType getSourceType()
ConfigRepositorygetSourceType in interface ConfigRepositorypublic void onChange(ConfigFileChangeEvent changeEvent)
ConfigFileChangeListeneronChange in interface ConfigFileChangeListenerchangeEvent - the event for this changeCopyright © 2022 Ctrip, Inc.. All rights reserved.