You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Stefan Bischof (Jira)" <ji...@apache.org> on 2022/03/12 16:57:00 UTC
[jira] [Created] (BATIK-1322) OSGi Support
Stefan Bischof created BATIK-1322:
-------------------------------------
Summary: OSGi Support
Key: BATIK-1322
URL: https://issues.apache.org/jira/browse/BATIK-1322
Project: Batik
Issue Type: New Feature
Reporter: Stefan Bischof
Several applications and frameworks are OSGi based. To use batik in this applications is a bit tricky, because batik does not declare Exportes and Imported packages in the MANIFEST.MF file of the jars. Also the Service class has some issues because it is not sure that correct classloader is used. So most developers repackage the batik jars and add the needed information. Or they use repackages batik versions of eclipse or apache. e.g. `org.apache.servicemix.bundles:org.apache.servicemix.bundles.batik`
Best way to is to do the full suport in the main repos.
I would like to add a better OSGi Support for Batik. So I made a PR on
GitHub.
Could somebody give some comments/review before I start the SVN-Process
Topics:
* use bnd to create OSGi-Bundle Manifests and simplify build
* generate META-INF/services files using |@ServiceProvider ( relocate
||META-INF/services to correct jar) |
* use ServiceLoader to avoid ClassLoader issues in Service.class
could also add ass osgi-based tests if needed
PR:
https://github.com/apache/xmlgraphics-batik/pull/30
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org