|
|
@ -86,8 +86,7 @@ public class DynamicThreadPoolServiceLoader {
|
|
|
|
private static Object newServiceInstance(final Class<?> clazz) {
|
|
|
|
private static Object newServiceInstance(final Class<?> clazz) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
return clazz.getDeclaredConstructor().newInstance();
|
|
|
|
return clazz.getDeclaredConstructor().newInstance();
|
|
|
|
}
|
|
|
|
} catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
|
|
|
|
catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
|
|
|
|
|
|
|
|
throw new ServiceLoaderInstantiationException(clazz, e);
|
|
|
|
throw new ServiceLoaderInstantiationException(clazz, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|