enhance diagnostics for driver loader

This commit is contained in:
Jonathan Shook 2021-10-06 17:06:17 -05:00
parent 0df40113e8
commit 9c91ad7136

View File

@ -63,6 +63,7 @@ public class SimpleServiceLoader<T> {
providers = new LinkedHashMap<>();
loader.stream().forEach(provider -> {
logger.trace("loading provider: " + provider.type());
Class<? extends T> type = provider.type();
if (!type.isAnnotationPresent(Service.class)) {
throw new RuntimeException(