Package io.nosqlbench.api.spi
Class SimpleServiceLoader<T>
java.lang.Object
io.nosqlbench.api.spi.SimpleServiceLoader<T>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSimpleServiceLoader(Class<? extends T> serviceType, io.nosqlbench.nb.annotations.Maturity maturity) -
Method Summary
Modifier and TypeMethodDescriptiongetAllSelectors(String... patterns) List<SimpleServiceLoader.Component<? extends T>>getNamedProviders(String... includes) Load the service providers which are annotated withServiceand selector names.getOptionally(String implName) getOrThrow(String implName) setMaturity(io.nosqlbench.nb.annotations.Maturity maturity)
-
Constructor Details
-
SimpleServiceLoader
-
-
Method Details
-
setMaturity
-
get
-
getOrThrow
-
getOptionally
-
getNamedProviders
Load the service providers which are annotated withServiceand selector names.- Parameters:
includes- If provided, a list of patterns which are used to include named services based on the selector name from theServiceannotation.- Returns:
- A map of providers of T
-
getAllSelectors
-