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