| This class serializes a set of
ModuleDescriptor module descriptors into a
Document XML document . The set of module descriptors to process is specified indirectly
by supplying one or several
ModuleDescriptorProvider (see
RegistrySerializer.addModuleDescriptorProvider(ModuleDescriptorProvider) ). In this respect this class is
used the same way as
org.apache.hivemind.impl.RegistryBuilder . There is even a
corresponding
RegistrySerializer.createDefaultRegistryDocument() static method to serialize the modules of
the default registry.
The resulting XML file does not conform to the hivemind module deployment descriptor schema. The
following changes occur:
- The outermost element is <registry> (which contains a list of <module>)
- A unique id (unique within the file) is assigned to each <module>,
<configuration-point>, <service-point>, <contribution>, &tl;schema> and
<implementation> (this is to make it easier to generate links and anchors)
- Unqualified ids are converted to qualified ids (whereever possible).
author: Knut Wannheden since: 1.1 |