Skip to content

Provide extensibility mechanism where additional subreports can be added - #48

Open
mstruk wants to merge 3 commits into
RedHatInsights:mainfrom
mstruk:extensibility
Open

Provide extensibility mechanism where additional subreports can be added#48
mstruk wants to merge 3 commits into
RedHatInsights:mainfrom
mstruk:extensibility

Conversation

@mstruk

@mstruk mstruk commented Oct 2, 2025

Copy link
Copy Markdown

An API interface com.redhat.insights.agent.api.SubreportProvider is defined. Implementations of it are discovered at runtime via ServiceLoader pattern.
A custom agent project can add a dependency on insights-java-agent and additionally provide custom InsightsSubreport implementations and make them available via SubreportProvider implementation. A custom agent project can use the same packaging strategy as insights-java-agent to provide a shaded agent archive that also contains the custom SubreportProvider implementations.

Signed-off-by: Marko Strukelj <marko.strukelj@gmail.com>
ServiceLoader based extension mechanism via `com.redhat.insights.agent.api.SubreportProvider`

Signed-off-by: Marko Strukelj <marko.strukelj@gmail.com>
…cation Main.main()

Signed-off-by: Marko Strukelj <marko.strukelj@gmail.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