Class ADMArchiveHandler

java.lang.Object
io.atlasmap.core.ADMArchiveHandler

public class ADMArchiveHandler extends Object
The API for handling ADM archive. It encapsulates ADM archive structure and format and isolate file/stream I/O from other part. ADM archive is a zipped archive file or its exploded directory which contains
  • Mapping Definition file (atlasmapping-UI.n.json)
  • Gzipped digest file which contains all non-Java document metadata and mapping definition in a single JSON file (adm-catalog-files-n.gz)
  • Java libraries (jar files in lib/ directory)
load(Path) export(OutputStream)
This handler follows lazy loading strategy as much as possible, i.e. defer to serialize/deserialize until it is really required. Also note that at this moment Java library directory is not managed by this class. Only when it imports/exports ADM archive file, library jars are extracted/bundled if isIgnoreLibrary() is set to false.
TODO https://github.com/atlasmap/atlasmap/issues/1476 A gzipped digest file have to be splitted into individual schemas and a catalog file.