TIKA-4700 Support OSGi Service Loader Mediator#2714
Open
kwin wants to merge 1 commit intoapache:mainfrom
Open
Conversation
Generate according capabilities headers for providers via TikaComponent annotations and Bnd's https://bnd.bndtools.org/chapters/230-manifest-annotations.html#meta-infservices-annotations. According capabilities headers for the consumer are generated via Bnd's ServiceConsumer annotations.
kwin
commented
Mar 25, 2026
| * @since Apache Tika 0.9 | ||
| */ | ||
| @ServiceConsumer(Parser.class) | ||
| @ServiceConsumer(Detector.class) |
Member
Author
There was a problem hiding this comment.
What about the other service interfaces being mentioned at
? Are those looked up via this class as well?
Member
Author
There was a problem hiding this comment.
They are not supported in https://github.com/apache/tika/blob/84166bafb9bffb8ff166ee5f3394de6456555e3d/tika-core/src/main/java/org/apache/tika/config/TikaActivator.java but maybe that is just a bug...?
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.
Generate according capabilities headers for providers via TikaComponent annotations and Bnd's
https://bnd.bndtools.org/chapters/230-manifest-annotations.html#meta-infservices-annotations. According capabilities headers for the consumer are generated via Bnd's ServiceConsumer annotations.