Skip to content

TIKA-4700 Support OSGi Service Loader Mediator#2714

Open
kwin wants to merge 1 commit intoapache:mainfrom
kwin:feature/osgi-service-loader-mediator-support
Open

TIKA-4700 Support OSGi Service Loader Mediator#2714
kwin wants to merge 1 commit intoapache:mainfrom
kwin:feature/osgi-service-loader-mediator-support

Conversation

@kwin
Copy link
Copy Markdown
Member

@kwin kwin commented Mar 25, 2026

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.

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.
* @since Apache Tika 0.9
*/
@ServiceConsumer(Parser.class)
@ServiceConsumer(Detector.class)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

What about the other service interfaces being mentioned at

SERVICE_INTERFACES.put("org.apache.tika.parser.Parser", "parsers");
SERVICE_INTERFACES.put("org.apache.tika.detect.Detector", "detectors");
SERVICE_INTERFACES.put("org.apache.tika.detect.EncodingDetector", "encoding-detectors");
SERVICE_INTERFACES.put("org.apache.tika.language.detect.LanguageDetector", "language-detectors");
SERVICE_INTERFACES.put("org.apache.tika.language.translate.Translator", "translators");
SERVICE_INTERFACES.put("org.apache.tika.renderer.Renderer", "renderers");
SERVICE_INTERFACES.put("org.apache.tika.metadata.filter.MetadataFilter", "metadata-filters");
? Are those looked up via this class as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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