org.fusesource.mvnplugins.uberize
Class UberEntry

java.lang.Object
  extended by org.fusesource.mvnplugins.uberize.UberEntry

public class UberEntry
extends Object

An UberEntry represents a file path in an uber jar. It will keep track of overlapping source files until a transformation can apply a merge strategy to them. When a transformation is applied, a new UberEntry will replace the previous one but it will maintain a reference to it so that the transformation history of the file path can be inspected.

Author:
Hiram Chirino

Constructor Summary
UberEntry(String path)
          Creates an UberEntry at located at the specified path.
UberEntry(String path, List<UberEntry> previous)
           
UberEntry(String path, UberEntry previous)
          Creates na UberEntry at located at the specified path, which is an updated of a previous UberEntry.
UberEntry(UberEntry previous)
          Creates an UberEntry that is an update of a previous UberEntry.
 
Method Summary
 UberEntry addSource(File file)
           
 List<UberEntry> getAllPrevious()
          If a transformer agregates mutliple UberEntry paths into a single path then the prvious version of thise node will be a list of UberEntrys
 String getPath()
          The path of the entry.
 UberEntry getPrevious()
           
 ArrayList<File> getSources()
          A list which can be used to track all the overlapping source files associated with the path entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UberEntry

public UberEntry(String path)
Creates an UberEntry at located at the specified path.

Parameters:
path -

UberEntry

public UberEntry(UberEntry previous)
Creates an UberEntry that is an update of a previous UberEntry. The path of the new UberEntry will match the previous one.

Parameters:
previous -

UberEntry

public UberEntry(String path,
                 UberEntry previous)
Creates na UberEntry at located at the specified path, which is an updated of a previous UberEntry.

Parameters:
path -

UberEntry

public UberEntry(String path,
                 List<UberEntry> previous)
Method Detail

getSources

public ArrayList<File> getSources()
A list which can be used to track all the overlapping source files associated with the path entry.

Returns:

getPath

public String getPath()
The path of the entry.

Returns:

getPrevious

public UberEntry getPrevious()
Returns:
The previous version of the UberEntry or null if this is the original version.

getAllPrevious

public List<UberEntry> getAllPrevious()
If a transformer agregates mutliple UberEntry paths into a single path then the prvious version of thise node will be a list of UberEntrys

Returns:

addSource

public UberEntry addSource(File file)


Copyright © 2009-2011 FuseSource. All Rights Reserved.