org.fusesource.mvnplugins.uberize
Interface Uberizer

All Known Implementing Classes:
DefaultUberizer

public interface Uberizer

Author:
Jason van Zyl, Hiram Chirino

Field Summary
static String ROLE
           
 
Method Summary
 HashMap<String,String> getClassRelocations()
          Transformations which re-map classes should updated this map.
 File pickOneSource(TreeMap<String,UberEntry> tree, UberEntry entry)
          When a transformation can't aggregate multiple sources for an entry..
 void uberize(File workDir, Set sourceJars, File uberJar, List<Filter> filters, List<Transformer> transformers)
          Creates an uber jar from the source jars.
 

Field Detail

ROLE

static final String ROLE
Method Detail

uberize

void uberize(File workDir,
             Set sourceJars,
             File uberJar,
             List<Filter> filters,
             List<Transformer> transformers)
             throws IOException
Creates an uber jar from the source jars. The work directory can be used to stage data.

Parameters:
workDir -
sourceJars -
uberJar -
filters -
transformers -
Throws:
IOException

pickOneSource

File pickOneSource(TreeMap<String,UberEntry> tree,
                   UberEntry entry)
                   throws IOException
When a transformation can't aggregate multiple sources for an entry.. this method asks the Uberizer to pick one source for it to use.

Parameters:
tree -
entry -
Returns:
Throws:
IOException

getClassRelocations

HashMap<String,String> getClassRelocations()
Transformations which re-map classes should updated this map. It's a map of 'original class name' to 'new class name'.

Returns:
the classes that be been relocated.


Copyright © 2009-2011 FuseSource. All Rights Reserved.