Class AbstractExporterDelegate<T>
java.lang.Object
org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate<T>
- Direct Known Subclasses:
ExplodedExporterDelegate
,TarBz2ExporterDelegate
,TarExporterDelegate
,TarGzExporterDelegate
,ZipExporterDelegate
AbstractExporterDelegate
Abstract delegate used for archive export. Provides a template for exporters for handling archive contents.
- Version:
- $Revision: $
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractExporterDelegate
(Archive<?> archive) Creates a new abstract exporter delegate for the providedArchive
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExport()
Primary method providing a template for exporting the contents of an archivefinal T
export()
Runs the export operation, returning the resultprotected Archive
<?> Return the archive being exportedprotected abstract T
Return the results of the export.protected abstract void
processNode
(ArchivePath path, Node node) Template method for processing a single node.private void
processNode
(Node node) Recursive call to process all the node hierarchy
-
Field Details
-
log
Logger -
archive
The archive being exported
-
-
Constructor Details
-
AbstractExporterDelegate
Creates a new abstract exporter delegate for the providedArchive
-
-
Method Details
-
export
Runs the export operation, returning the result- Returns:
-
doExport
protected void doExport()Primary method providing a template for exporting the contents of an archive -
processNode
Recursive call to process all the node hierarchy- Parameters:
node
-
-
processNode
Template method for processing a single node.- Parameters:
path
-node
-
-
getResult
Return the results of the export. Should process any tasks required to finalize the export.- Returns:
-
getArchive
Return the archive being exported- Returns:
-