| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ConfigRepository |
|
| 1.0;1 |
| 1 | package com.ctrip.apollo.internals; | |
| 2 | ||
| 3 | import java.util.Properties; | |
| 4 | ||
| 5 | /** | |
| 6 | * @author Jason Song(song_s@ctrip.com) | |
| 7 | */ | |
| 8 | public interface ConfigRepository { | |
| 9 | /** | |
| 10 | * Get the config from this repository. | |
| 11 | * @return config | |
| 12 | */ | |
| 13 | public Properties getConfig(); | |
| 14 | ||
| 15 | /** | |
| 16 | * Set the fallback repo for this repository. | |
| 17 | * @param fallbackConfigRepository the fallback repo | |
| 18 | */ | |
| 19 | public void setFallback(ConfigRepository fallbackConfigRepository); | |
| 20 | ||
| 21 | /** | |
| 22 | * Add change listener. | |
| 23 | * @param listener the listener to observe the changes | |
| 24 | */ | |
| 25 | public void addChangeListener(RepositoryChangeListener listener); | |
| 26 | ||
| 27 | /** | |
| 28 | * Remove change listener. | |
| 29 | * @param listener the listener to remove | |
| 30 | */ | |
| 31 | public void removeChangeListener(RepositoryChangeListener listener); | |
| 32 | } |