org.apache.hivemind.ant
Class RegistrySerializer

java.lang.Object
  extended by 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:

Since:
1.1
Author:
Knut Wannheden

Constructor Summary
RegistrySerializer()
           
 
Method Summary
 void addModuleDescriptorProvider(ModuleDescriptorProvider provider)
           
static org.w3c.dom.Document createDefaultRegistryDocument()
           
 org.w3c.dom.Document createRegistryDocument()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistrySerializer

public RegistrySerializer()
Method Detail

addModuleDescriptorProvider

public void addModuleDescriptorProvider(ModuleDescriptorProvider provider)

createRegistryDocument

public org.w3c.dom.Document createRegistryDocument()

createDefaultRegistryDocument

public static org.w3c.dom.Document createDefaultRegistryDocument()