| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ConfigFactory |
|
| 1.0;1 |
| 1 | package com.ctrip.framework.apollo.spi; | |
| 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 ConfigFactory { | |
| 11 | /** | |
| 12 | * Create the config instance for the namespace. | |
| 13 | * | |
| 14 | * @param namespace the namespace | |
| 15 | * @return the newly created config instance | |
| 16 | */ | |
| 17 | public Config create(String namespace); | |
| 18 | ||
| 19 | /** | |
| 20 | * Create the config file instance for the namespace | |
| 21 | * @param namespace the namespace | |
| 22 | * @return the newly created config file instance | |
| 23 | */ | |
| 24 | public ConfigFile createConfigFile(String namespace, ConfigFileFormat configFileFormat); | |
| 25 | } |