use of io.nosqlbench.nb.api.spi.SimpleServiceLoader in project nosqlbench by nosqlbench.
the class BundledDriverAdapterDocs method getDocs.
@Override
public DocsBinder getDocs() {
Docs docs = new Docs().namespace("adapter-docs");
SimpleServiceLoader<DriverAdapter> loader = new SimpleServiceLoader<>(DriverAdapter.class, Maturity.Any);
List<SimpleServiceLoader.Component<? extends DriverAdapter>> namedProviders = loader.getNamedProviders();
for (SimpleServiceLoader.Component<? extends DriverAdapter> namedProvider : namedProviders) {
DriverAdapter driverAdapter = namedProvider.provider.get();
DocsBinder bundledDocs = driverAdapter.getBundledDocs();
docs.merge(bundledDocs);
}
return docs;
}
Aggregations