I’m pleased to make modxstream available at Maven Central.
The modxstream project provides a Java Platform Module System (JPMS) compliant wrapper for XStream. The published .jar file has an Automatic-Module-Name of pnambic.modxstream, allowing it access classpath components and provide module path components.
In order to provide access to XStream’s capabilities, modxstream is delivered as a JPMS module using the Automatic-Module-Name value pnambic.modxstream. This allows modular components in your application to access the APIs provided by modxstream, and it allows modstream to pass requests along to the non-modular XStream components.
Rather than a thin shim layer for passing data to XStream, modxstream provides a Transport API with load() and save() methods. The Transport API has context data support built in, and instances are configured and created through a simple builder class.
If you need to implement custom converters, the Object Converter APIs provide an extended wrapper for the XStream features. It modularizes access to XStream's marshalling APIs with its own context objects for marshalling and unmarshalling. These APIs integrate seamlessly with the XStream’s built-in capabilities.
The modxstream APIs include built-in access to context data and token peek-ahead. These features can simplify the development of some hand-crafted converters.
The current modxstream implementation supports many popular XStream configuration options, but not all. Patches to extend support to other XStream features are welcome.
The modxstream artifacts are available on Maven Central. The source is available on GitHub.