This is an automated email from the ASF dual-hosted git repository. github-bot pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 71b8043617c8a7d7774de2793daa95eec5b70aec Author: James Netherton <jamesnether...@gmail.com> AuthorDate: Thu Sep 28 13:07:01 2023 +0100 Implement getClassLoaders method for CamelQuarkusClassResolver --- .../org/apache/camel/quarkus/core/CamelQuarkusClassResolver.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelQuarkusClassResolver.java b/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelQuarkusClassResolver.java index 7c1d52e20c..600b24658b 100644 --- a/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelQuarkusClassResolver.java +++ b/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelQuarkusClassResolver.java @@ -18,6 +18,7 @@ package org.apache.camel.quarkus.core; import java.io.InputStream; import java.net.URL; +import java.util.Collections; import java.util.Enumeration; import java.util.LinkedHashSet; import java.util.Set; @@ -43,6 +44,14 @@ public class CamelQuarkusClassResolver implements ClassResolver { classLoaders.add(classLoader); } + @Override + public Set<ClassLoader> getClassLoaders() { + if (classLoaders == null) { + return Collections.emptySet(); + } + return Collections.unmodifiableSet(classLoaders); + } + @Override public Class<?> resolveClass(String name) { Class<?> result = loadClass(name, applicationContextClassLoader);