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