public class PropertiesCompatibleFileConfigRepository extends AbstractConfigRepository implements ConfigFileChangeListener
| 构造器和说明 |
|---|
PropertiesCompatibleFileConfigRepository(PropertiesCompatibleConfigFile configFile) |
| 限定符和类型 | 方法和说明 |
|---|---|
Properties |
getConfig()
Get the config from this repository.
|
ConfigSourceType |
getSourceType()
Return the config's source type, i.e. where is the config loaded from
|
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 在接口中 ConfigRepositorypublic void setUpstreamRepository(ConfigRepository upstreamConfigRepository)
ConfigRepositorysetUpstreamRepository 在接口中 ConfigRepositoryupstreamConfigRepository - the upstream repopublic ConfigSourceType getSourceType()
ConfigRepositorygetSourceType 在接口中 ConfigRepositorypublic void onChange(ConfigFileChangeEvent changeEvent)
ConfigFileChangeListeneronChange 在接口中 ConfigFileChangeListenerchangeEvent - the event for this changeCopyright © 2019 Ctrip, Inc.. All rights reserved.