public interface ConfigFile
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(ConfigFileChangeListener listener)
Add change listener to this config file instance.
|
ConfigFileFormat |
getConfigFileFormat()
Get the file format of this config file instance
|
String |
getContent()
Get file content of the namespace
|
String |
getNamespace()
Get the namespace of this config file instance
|
ConfigSourceType |
getSourceType()
Return the config's source type, i.e.
|
boolean |
hasContent()
Whether the config file has any content
|
boolean |
removeChangeListener(ConfigFileChangeListener listener)
Remove the change listener
|
String getContent()
null if there is no contentboolean hasContent()
String getNamespace()
ConfigFileFormat getConfigFileFormat()
void addChangeListener(ConfigFileChangeListener listener)
listener - the config file change listenerboolean removeChangeListener(ConfigFileChangeListener listener)
listener - the specific config change listener to removeConfigSourceType getSourceType()
Copyright © 2022 Ctrip, Inc.. All rights reserved.