mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-25 18:20:33 -06:00
allow optional service loader result
This commit is contained in:
parent
7e8fef5b5b
commit
de26371496
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user