Skip to content

ARTEMIS-5974 replace FactoryFinder with Java ServiceLoader#6324

Merged
tabish121 merged 1 commit intoapache:mainfrom
jbertram:ARTEMIS-5974
Apr 8, 2026
Merged

ARTEMIS-5974 replace FactoryFinder with Java ServiceLoader#6324
tabish121 merged 1 commit intoapache:mainfrom
jbertram:ARTEMIS-5974

Conversation

@jbertram
Copy link
Copy Markdown
Contributor

No description provided.

@@ -0,0 +1 @@
org.apache.activemq.artemis.cli.factory.xml.XmlBrokerFactoryHandler
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like these service definitions can still have Apache license headers added as the ServiceLoader javadocs indicates it will ignore anything following the '#' character

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no problem adding the license header, but it's worth noting that we've specifically configured apache-rat-plugin in the root pom.xml to exclude **/META-INF/services/* which means we have a lot of other service files without headers (and have for years).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI - I sent #6352 to deal with all the other service provider config files.

@tabish121 tabish121 merged commit 5d0c0df into apache:main Apr 8, 2026
6 checks passed
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.

2 participants