Hi,

I'm very glad that Xerces-J is showing signs of life and gearing for a
2.10 release. I know it's a bit late in the release cycle, but I'd like to
contribute an IMHO very important piece: proper OSGi integration.

The recently released OSGi spec 4.2 has support for proper registration of
JAXP-compliant parsers into the OSGi service registry. This integration is
extremely minimal and requires merely two things:

- addition of a single ready-made class (a bundle activator)
- addition of a handful of entries to the MANIFEST file

That's all. While the single new class has a compile-time dependency on
the OSGi framework, it is only a *compile* dependency that has no impact
on the run-time behaviour of xerces outside of OSGi; users will likely not
even see it as it can be made as "private" as possible.

The process for adding this integration is explained in the 4.2 Compendium
and Enterprise specs which are freely available from www.osgi.org.

The necessary additions to the build took me ~10 minutes - all I did was
add the Activator (available as source under ASL license), an Apache Felix
framework jar as OSGi compile-time dependency, and the necessary bundle
headers to the manifest.xerces.

These additions have no impact on non-OSGi users, license restrictions,
runtime overhead or any other effect that would "endanger" a release or the
stability of the code. Therefore I'd really like to see this considered
for the upcoming release...pleeease? :)

If this is of interest I'll file a JIRA and attach patches & instructions
there.

Holger



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to