mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
allow optional service loader result
This commit is contained in:
@@ -48,6 +48,12 @@ public class SimpleServiceLoader<T> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Optional<T> getOptionally(String implName) {
|
||||||
|
Optional<T> type = get(implName);
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the service providers which are annotated with {@link Service} and selector names.
|
* Load the service providers which are annotated with {@link Service} and selector names.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user