public interface ConfigDataProvider
extends java.io.Closeable
ConfigBuilder API to
have a narrow surface area. Further, it also allows clients to plug in their own custom ConfigDataProviders.
Example usage:
ConfigBuilder configBuilder = ConfigBuilder.get();
try (ConfigDataProvider cdp = new ResourceConfigDataProvider("config/offline/myFeatures.conf")) {
FeatureDef configObj = configBuilder.buildFeatureDefConfig(cdp);
} catch (Exception e) {
// process exception
}
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConfigDataInfo()
Provides some information about config data.
|
java.util.List<java.io.Reader> |
getConfigDataReaders()
Return the config data as a list of
Reader objects. |
java.util.List<java.io.Reader> getConfigDataReaders()
Reader objects. Clients should ideally provide
BufferedReader objects.java.lang.String getConfigDataInfo()
UrlConfigDataProvider will provide a list of URLs from which the config data is obtained.