Skip to content

Commit

Permalink
fix: look for implementations of DashboardProvider.class
Browse files Browse the repository at this point in the history
  • Loading branch information
tschlenther committed Oct 13, 2023
1 parent ec848a7 commit 0bfff06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private List<DashboardProvider> loadProvider(ImmutableSet<ClassPath.ClassInfo> c
List<DashboardProvider> result = new ArrayList<>();
for (ClassPath.ClassInfo info : classes) {
Class<?> clazz = info.load();
if (clazz.isAssignableFrom(DashboardProvider.class)) {
if (DashboardProvider.class.isAssignableFrom(clazz)) {
try {
Constructor<?> c = clazz.getDeclaredConstructor();
DashboardProvider o = (DashboardProvider) c.newInstance();
Expand Down

0 comments on commit 0bfff06

Please sign in to comment.