org.fusesource.mvnplugins.uberize
Interface Transformer

All Known Implementing Classes:
AbstractPathTransformer, AbstractTransformer, AddResource, ApacheLicenseAgreggator, ApacheNoticeAgreggator, ClassShader, ManifestEditor, PickResource, PlexusComponents, RemoveResource, ServicesAppender, TextAggregator, XmlAppender

public interface Transformer

Transformer implementations are used to tranform the content and structure of an uber jar before it is finalized.

Author:
Hiram Chirino

Method Summary
 void process(Uberizer uberizer, File workDir, TreeMap<String,UberEntry> uberEntries)
          A transformer will modify the specified uber entries to apply transformation.
 

Method Detail

process

void process(Uberizer uberizer,
             File workDir,
             TreeMap<String,UberEntry> uberEntries)
             throws IOException
A transformer will modify the specified uber entries to apply transformation. It can add/remove entries from the map or replace existing uber entries. A transformer should not modify exisiting uber entries. It should instead create new enry instance (linked to the old one) and replace the old entry in the map with the new entry.

Parameters:
uberizer - the Uberizer instance requesting the transformation.
workDir - a work directory that the transformer can store transformed files in
uberEntries - a map of all the jar entries that will be included in the uber jar
Throws:
IOException


Copyright © 2009-2011 FuseSource. All Rights Reserved.