Repository navigation
Register the components of the other modules through ServiceLoader - #529
Merged
Merged
Conversation
rgoers
approved these changes
Nov 9, 2026
Each module now registers its own `type` aliases, so `flume-core` no longer needs to know their class names. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
ppkarwasz
force-pushed
the
feat/component-providers-modules
branch
from
November 9, 2026 21:40
e4de2bd to
7f482a9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #528: review and merge that one first, then this PR's base will switch to
trunk.Second step of replacing the
*Typeenums withServiceLoaderproviders: the modules of this repository register their owntypealiases, soflume-coreno longer needs their class names.taildir,syslogtcp,multiport_syslogtcp,syslogudp,netcatudp.file,spillablememory.env,external. These implementorg.apache.flume.configfilter.ConfigFilterProviderfromflume-config-filter-api, so the filter modules still don't depend onflume-core.Each module gets a nested
Providerclass annotated with@ServiceProviderand a test that checks the registration throughServiceLoader.CipherProviderTypeandKeyProviderTypeinflume-file-channelare left unchanged: they only reference classes of the same module.Known limitation
No Flume module exports any package yet (logging-parent only exports packages annotated with
@Export), so on the module path theprovidesclauses generated here fail to resolve. On the classpath, whichbin/flume-nguses, everything works. This will be fixed in a separate PR that adds@Exportto the public API packages.🤖 Generated with Claude Code