Skip to content

Let component providers create their components - #11

Draft
ppkarwasz wants to merge 1 commit into
mainfrom
feat/provider-creates-components
Draft

ppkarwasz wants to merge 1 commit into
mainfrom
feat/provider-creates-components

Conversation

@ppkarwasz

Copy link
Copy Markdown
Member

Adapts the component providers of this repository to apache/logging-flume#549, which replaces ComponentProvider.getComponentClass() with create(). Providers now create their components with a constructor reference (e.g. super("avro", AvroSink::new)) instead of returning their class for reflective instantiation, which does not work well with JPMS and GraalVM native images. The provider tests check the class of a created component.

Note

This PR will only pass once apache/logging-flume#549 is accepted and a new 2.0.0-SNAPSHOT of flume-core is built. It has been verified locally against a snapshot built from that PR.

🤖 Generated with Claude Code

Adapt the component providers to the new `ComponentProvider.create()`
method of `flume-core`, which replaces `getComponentClass()`: providers
now create their components with a constructor reference instead of
returning their class for reflective instantiation.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant