| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ConfigManager |
|
| 1.0;1 |
| 1 | package com.ctrip.framework.apollo.internals; | |
| 2 | ||
| 3 | import com.ctrip.framework.apollo.Config; | |
| 4 | import com.ctrip.framework.apollo.ConfigFile; | |
| 5 | import com.ctrip.framework.apollo.core.enums.ConfigFileFormat; | |
| 6 | ||
| 7 | /** | |
| 8 | * @author Jason Song(song_s@ctrip.com) | |
| 9 | */ | |
| 10 | public interface ConfigManager { | |
| 11 | /** | |
| 12 | * Get the config instance for the namespace specified. | |
| 13 | * @param namespace the namespace | |
| 14 | * @return the config instance for the namespace | |
| 15 | */ | |
| 16 | public Config getConfig(String namespace); | |
| 17 | ||
| 18 | /** | |
| 19 | * Get the config file instance for the namespace specified. | |
| 20 | * @param namespace the namespace | |
| 21 | * @param configFileFormat the config file format | |
| 22 | * @return the config file instance for the namespace | |
| 23 | */ | |
| 24 | public ConfigFile getConfigFile(String namespace, ConfigFileFormat configFileFormat); | |
| 25 | } |