org.fusesource.mvnplugins.uberize.transformer
Class AbstractTransformer
java.lang.Object
org.fusesource.mvnplugins.uberize.transformer.AbstractTransformer
- All Implemented Interfaces:
- Transformer
- Direct Known Subclasses:
- ServicesAppender
public abstract class AbstractTransformer
- extends java.lang.Object
- implements Transformer
Handy base class for simple transformers.
- Author:
- Hiram Chirino
|
Method Summary |
protected abstract boolean |
matches(java.lang.String entryPath)
|
void |
process(Uberizer uberizer,
java.io.File workDir,
java.util.TreeMap<java.lang.String,UberEntry> uberEntries)
A transformer will modify the specified uber entries to apply transformation. |
protected abstract UberEntry |
process(Uberizer uberizer,
UberEntry entry,
java.io.File target)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTransformer
public AbstractTransformer()
process
public void process(Uberizer uberizer,
java.io.File workDir,
java.util.TreeMap<java.lang.String,UberEntry> uberEntries)
throws java.io.IOException
- Description copied from interface:
Transformer
- 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.
- Specified by:
process in interface Transformer
- Parameters:
uberizer - the Uberizer instance requesting the transformation.workDir - a work directory that the transformer can store transformed files inuberEntries - a map of all the jar entries that will be included in the uber jar
- Throws:
java.io.IOException
matches
protected abstract boolean matches(java.lang.String entryPath)
process
protected abstract UberEntry process(Uberizer uberizer,
UberEntry entry,
java.io.File target)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2009-2011 FuseSource. All Rights Reserved.