Interface ConfigStoreFactory
- All Known Implementing Classes:
ConfigMapStoreFactory, ConsulConfigStoreFactory, GitConfigStoreFactory, RedisConfigStoreFactory, SpringConfigServerStoreFactory, VaultConfigStoreFactory, ZookeeperConfigStoreFactory
public interface ConfigStoreFactory
Factory to create instances of
ConfigStore. This is a SPI, and so implementations are retrieved
from the classpath / classloader using a ServiceLoader.- Author:
- Clement Escoffier
-
Method Summary
Modifier and TypeMethodDescriptioncreate(Vertx vertx, JsonObject configuration) Creates an instance of theConfigStore.name()
-
Method Details
-
name
String name()- Returns:
- the name of the factory.
-
create
Creates an instance of theConfigStore.- Parameters:
vertx- the vert.x instance, nevernullconfiguration- the configuration, nevernull, but potentially empty- Returns:
- the created configuration store
-