An image toolkit plug-in adds the support of one or more graphics file formats (e.g. TIFF, SVG, etc) to XXE.
Like all plug-ins, an image toolkit plug-in is not declared anywhere. It is dynamically discovered and loaded during the startup of XXE (more info in Section 1, “Dynamic discovery of add-ons” in XMLmind XML Editor - Configuration and Deployment) provided that it complies with the following conventions:
The code of the image toolkit plug-in must be contained in a JAR file having a name ending with "_imagetoolkit.jar
".
This JAR file must contain a META-INF/services/com.xmlmind.xmledit.imagetoolkit.ImageToolkit
file containing the name of the class implementing interface com.xmlmind.xmledit.imagetoolkit.ImageToolkit
.
For example, batik_imagetoolkit.jar
contains META-INF/services/com.xmlmind.xmledit.imagetoolkit.ImageToolkit
which contains com.xmlmind.xmleditext.batik_imagetoolkit.BatikImageToolkit
.
Implement com.xmlmind.xmledit.imagetoolkit.ImageToolkit
.
If you plan to implement an image toolkit plug-in and need an example showing how this can be done, please send an email to <xmleditor-info@xmlmind.com>
and we'll provide you with the full source code of the "Apache Batik image toolkit plug-in ".