org.apache.hivemind.ant
Class RegistrySerializer
java.lang.Object
org.apache.hivemind.ant.RegistrySerializer
public class RegistrySerializer
- extends java.lang.Object
This class serializes a set of module descriptors
into a
XML document
. The set of module descriptors to process is specified indirectly
by supplying one or several ModuleDescriptorProvider
(see
addModuleDescriptorProvider(ModuleDescriptorProvider)
). In this respect this class is
used the same way as RegistryBuilder
. There is even a
corresponding 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).
- Since:
- 1.1
- Author:
- Knut Wannheden
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegistrySerializer
public RegistrySerializer()
addModuleDescriptorProvider
public void addModuleDescriptorProvider(ModuleDescriptorProvider provider)
createRegistryDocument
public org.w3c.dom.Document createRegistryDocument()
createDefaultRegistryDocument
public static org.w3c.dom.Document createDefaultRegistryDocument()