Class ExplodedExporterDelegate
- java.lang.Object
-
- org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate<java.io.File>
-
- org.jboss.shrinkwrap.impl.base.exporter.ExplodedExporterDelegate
-
public class ExplodedExporterDelegate extends AbstractExporterDelegate<java.io.File>
ExplodedExporterDelegate Delegate used to export an archive into an exploded directory structure.- Version:
- $Revision: $
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.logging.Logger
log
Loggerprivate java.io.File
outputDirectory
Output directory to write the exploded content to.
-
Constructor Summary
Constructors Constructor Description ExplodedExporterDelegate(Archive<?> archive, java.io.File outputDirectory)
Creates a new exploded exporter delegate for the providedArchive
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.File
getResult()
Return the results of the export.private void
processArchiveAsset(java.io.File parentDirectory, ArchiveAsset nestedArchiveAsset)
Processes a nested archive by delegating to the ExplodedArchiveExporterprotected void
processNode(ArchivePath path, Node node)
Template method for processing a single node.private java.io.File
validateOutputDirectory(java.io.File outputDirectory)
Initializes the output directory-
Methods inherited from class org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate
doExport, export, getArchive
-
-
-
-
Method Detail
-
processNode
protected void processNode(ArchivePath path, Node node)
Template method for processing a single node.- Specified by:
processNode
in classAbstractExporterDelegate<java.io.File>
- See Also:
AbstractExporterDelegate.processNode(ArchivePath, Node)
-
getResult
protected java.io.File getResult()
Return the results of the export. Should process any tasks required to finalize the export.- Specified by:
getResult
in classAbstractExporterDelegate<java.io.File>
- Returns:
- See Also:
AbstractExporterDelegate.getResult()
-
processArchiveAsset
private void processArchiveAsset(java.io.File parentDirectory, ArchiveAsset nestedArchiveAsset)
Processes a nested archive by delegating to the ExplodedArchiveExporter- Parameters:
parentDirectory
-nestedArchiveAsset
-
-
validateOutputDirectory
private java.io.File validateOutputDirectory(java.io.File outputDirectory)
Initializes the output directory- Parameters:
baseDirectory
-directoryName
-- Returns:
-
-