public class LocalFileConfigRepository extends AbstractConfigRepository implements RepositoryChangeListener
| Constructor and Description |
|---|
LocalFileConfigRepository(String appId,
String namespace)
Constructor.
|
LocalFileConfigRepository(String appId,
String namespace,
ConfigRepository upstream) |
| 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 |
onRepositoryChange(String namespace,
Properties newProperties)
Invoked when config repository changes.
|
void |
onRepositoryChange(String appId,
String namespace,
Properties newProperties)
Invoked when config repository changes.
|
void |
setUpstreamRepository(ConfigRepository upstreamConfigRepository)
Set the fallback repo for this repository.
|
addChangeListener, initialize, removeChangeListenerpublic LocalFileConfigRepository(String appId, String namespace)
namespace - the namespacepublic LocalFileConfigRepository(String appId, String namespace, ConfigRepository upstream)
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 onRepositoryChange(String namespace, Properties newProperties)
RepositoryChangeListeneronRepositoryChange in interface RepositoryChangeListenernamespace - the namespace of this repository changenewProperties - the properties after changepublic void onRepositoryChange(String appId, String namespace, Properties newProperties)
RepositoryChangeListeneronRepositoryChange in interface RepositoryChangeListenerappId - the appId of this repository changenamespace - the namespace of this repository changenewProperties - the properties after changeCopyright © 2025. All rights reserved.