ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1

org.jboss.shrinkwrap.impl.base.exporter
Class AbstractExporterDelegate<T>

java.lang.Object
  extended by org.jboss.shrinkwrap.impl.base.exporter.AbstractExporterDelegate<T>
Direct Known Subclasses:
ExplodedExporterDelegate, StreamExporterDelegateBase

public abstract class AbstractExporterDelegate<T>
extends Object

AbstractExporterDelegate Abstract delegate used for archive export. Provides a template for exporters for handling archive contents.

Version:
$Revision: $
Author:
John Bailey

Constructor Summary
protected AbstractExporterDelegate(Archive<?> archive)
          Creates a new abstract exporter delegate for the provided Archive
 
Method Summary
protected  void doExport()
          Primary method providing a template for exporting the contents of an archive
 T export()
          Runs the export operation, returning the result
protected  Archive<?> getArchive()
          Return the archive being exported
protected abstract  T getResult()
          Return the results of the export.
protected abstract  void processNode(ArchivePath path, Node node)
          Template method for processing a single node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractExporterDelegate

protected AbstractExporterDelegate(Archive<?> archive)
Creates a new abstract exporter delegate for the provided Archive

Method Detail

export

public final T 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

protected abstract void processNode(ArchivePath path,
                                    Node node)
Template method for processing a single node.

Parameters:
path -
node -

getResult

protected abstract T getResult()
Return the results of the export. Should process any tasks required to finalize the export.

Returns:

getArchive

protected Archive<?> getArchive()
Return the archive being exported

Returns:

ShrinkWrap Aggregator and Build Parent 1.0.0-cr-1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.