Skip to content

Config defaults using ServiceLoader#2744

Closed
gmazzo wants to merge 1 commit intosquare:mainfrom
gmazzo:service-loader-extensions
Closed

Config defaults using ServiceLoader#2744
gmazzo wants to merge 1 commit intosquare:mainfrom
gmazzo:service-loader-extensions

Conversation

@gmazzo
Copy link
Copy Markdown
Contributor

@gmazzo gmazzo commented Mar 14, 2025

Add classpath support for loading ObjectInspector and EventListener, by leveraging ServiceLoader.

The use case for us is (for now) an internal tool allowing us to collect reports back to our CI.

The META-INF/services approach will allow us to dynamically register the collector without registering it explicitly on each test

@gmazzo gmazzo force-pushed the service-loader-extensions branch from 6f863dc to 403990b Compare March 15, 2025 01:34
@gmazzo gmazzo marked this pull request as draft March 15, 2025 19:20
@gmazzo gmazzo force-pushed the service-loader-extensions branch from 403990b to aa8fc41 Compare March 15, 2025 19:29
@gmazzo
Copy link
Copy Markdown
Contributor Author

gmazzo commented Mar 15, 2025

Dropping this since the required integration can be done with META-INF/services/org.junit.runner.notification.RunListener ;)

@gmazzo gmazzo closed this Mar 15, 2025
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