in log4j-converter-plugin-descriptor/src/main/java/org/apache/logging/log4j/converter/plugins/internal/PluginDescriptors.java [405:423]
private List<String> findBuilderClassHierarchy(final ClassLoader classLoader) {
try {
final Class<?> pluginClass = classLoader.loadClass(className);
for (final Method method : pluginClass.getMethods()) {
for (final Annotation annotation : method.getAnnotations()) {
switch (annotation.annotationType().getName()) {
case PLUGIN_FACTORY:
// Continue the search until apache/logging-log4j2#3126 is fixed.
break;
case PLUGIN_BUILDER_FACTORY:
return computeClassHierarchy(findBuilderClass(method.getGenericReturnType()));
}
}
}
return Collections.emptyList();
} catch (final ClassNotFoundException | LinkageError e) {
throw new PluginNotFoundException(pluginNames, e);
}
}