gharris1727 opened a new pull request, #13821: URL: https://github.com/apache/kafka/pull/13821
In order to support multiple scanning modes, we should refactor the existing scanning mechanism out of the DelegatingClassLoader. This is because KIP-898 will require more functionality that relies on the results of scanning, and it is not appropriate to add to the DCL itself. Scanning (and the PluginScanResult) are dependent on the ClassLoader instances which are used to load the plugins, so the DelegatingClassLoader is still responsible for processing the plugin path and instantiating the PluginClassLoader, and emits these to the external scanner via PluginSource objects. In addition to pulling the existing reflection-based scanning out into a ReflectionScanner and superclass PluginScanner, add the ServiceLoaderScanner (currently unused) which shares some functionality with the ReflectionScanner. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org