log.info("Found ConfigStore with scheme : " + storeFactory.getScheme()); if (storeUri.getScheme().equals(storeFactory.getScheme())) { log.info("Using ConfigStore with scheme : " + storeFactory.getScheme()); ConfigStore configStore = storeFactory.createConfigStore(storeUri);
ConfigStoreAccessor result; ConfigStoreFactory<ConfigStore> csFactory = this.getConfigStoreFactory(configKeyURI); ConfigStore cs = csFactory.createConfigStore(configKeyURI);
@SuppressWarnings("rawtypes") public ConfigStoreFactoryRegister() { ServiceLoader<ConfigStoreFactory> loader = ServiceLoader.load(ConfigStoreFactory.class); for (ConfigStoreFactory f : loader) { this.configStoreFactoryMap.put(f.getScheme(), f); LOG.info("Created the config store factory with scheme name " + f.getScheme()); } }
ConfigStoreAccessor result; ConfigStoreFactory<ConfigStore> csFactory = this.getConfigStoreFactory(configKeyURI); ConfigStore cs = csFactory.createConfigStore(configKeyURI);
when(mockConfigStoreFactory.getScheme()).thenReturn("etl-hdfs"); when(mockConfigStoreFactory.createConfigStore(absoluteURI)).thenReturn(mockConfigStore); when(mockConfigStoreFactory.createConfigStore(relativeURI)).thenReturn(mockConfigStore);
log.info("Found ConfigStore with scheme : " + storeFactory.getScheme()); if (storeUri.getScheme().equals(storeFactory.getScheme())) { log.info("Using ConfigStore with scheme : " + storeFactory.getScheme()); ConfigStore configStore = storeFactory.createConfigStore(storeUri);
@SuppressWarnings("rawtypes") public ConfigStoreFactoryRegister() { ServiceLoader<ConfigStoreFactory> loader = ServiceLoader.load(ConfigStoreFactory.class); for (ConfigStoreFactory f : loader) { this.configStoreFactoryMap.put(f.getScheme(), f); LOG.info("Created the config store factory with scheme name " + f.getScheme()); } }