org.apache.ace.obr.metadata
Interface MetadataGenerator

All Known Implementing Classes:
BIndexMetadataGenerator

public interface MetadataGenerator


Method Summary
 void generateMetadata(File directory)
          Generates the repository.xml based upon the new set of Bundles in the given directory.
 

Method Detail

generateMetadata

void generateMetadata(File directory)
                      throws IOException
Generates the repository.xml based upon the new set of Bundles in the given directory. The xml is created as result of this method in the given directory in a file called repository.xml. This methods creates the file in an atomic fashion (this includes retrying to overwrite an existing file until success).

Parameters:
directory - the location where to store the newly created repository.xml
Throws:
IOException - If I/O problems occur when generating the new meta data index file.


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.