org.fusesource.mvnplugins.uberize
Interface Uberizer

All Known Implementing Classes:
DefaultUberizer

public interface Uberizer

Author:
Jason van Zyl, Hiram Chirino

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

Field Detail

ROLE

static final java.lang.String ROLE
Method Detail

uberize

void uberize(java.io.File workDir,
             java.util.Set sourceJars,
             java.io.File uberJar,
             java.util.List<Filter> filters,
             java.util.List<Transformer> transformers)
             throws java.io.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:
java.io.IOException

pickOneSource

java.io.File pickOneSource(java.util.TreeMap<java.lang.String,UberEntry> tree,
                           UberEntry entry)
                           throws java.io.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:
java.io.IOException

getClassRelocations

java.util.HashMap<java.lang.String,java.lang.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.