org.apache.maven.plugin.assembly.filter
Class AbstractLineAggregatingHandler

java.lang.Object
  extended by org.apache.maven.plugin.assembly.filter.AbstractLineAggregatingHandler
All Implemented Interfaces:
ContainerDescriptorHandler, org.codehaus.plexus.archiver.ArchiveFinalizer, org.codehaus.plexus.components.io.fileselectors.FileSelector
Direct Known Subclasses:
MetaInfServicesHandler, MetaInfSpringHandler

public abstract class AbstractLineAggregatingHandler
extends Object
implements ContainerDescriptorHandler


Field Summary
 
Fields inherited from interface org.codehaus.plexus.components.io.fileselectors.FileSelector
DEFAULT_ROLE_HINT, ROLE
 
Constructor Summary
AbstractLineAggregatingHandler()
           
 
Method Summary
protected  void addToArchive(org.codehaus.plexus.archiver.Archiver archiver)
           
protected abstract  boolean fileMatches(org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo)
           
 void finalizeArchiveCreation(org.codehaus.plexus.archiver.Archiver archiver)
           
 void finalizeArchiveExtraction(org.codehaus.plexus.archiver.UnArchiver unArchiver)
           
protected  Map<String,List<String>> getCatalog()
           
protected  String getEncoding()
           
protected abstract  String getOutputPathPrefix(org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo)
           
 List<String> getVirtualFiles()
           
 boolean isSelected(org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo)
           
protected  void readLines(org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo, List<String> lines)
           
protected  void setCatalog(Map<String,List<String>> catalog)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLineAggregatingHandler

public AbstractLineAggregatingHandler()
Method Detail

getOutputPathPrefix

protected abstract String getOutputPathPrefix(org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo)

fileMatches

protected abstract boolean fileMatches(org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo)

getEncoding

protected String getEncoding()

finalizeArchiveCreation

public void finalizeArchiveCreation(org.codehaus.plexus.archiver.Archiver archiver)
                             throws org.codehaus.plexus.archiver.ArchiverException
Specified by:
finalizeArchiveCreation in interface org.codehaus.plexus.archiver.ArchiveFinalizer
Throws:
org.codehaus.plexus.archiver.ArchiverException

addToArchive

protected void addToArchive(org.codehaus.plexus.archiver.Archiver archiver)
                     throws org.codehaus.plexus.archiver.ArchiverException
Throws:
org.codehaus.plexus.archiver.ArchiverException

finalizeArchiveExtraction

public void finalizeArchiveExtraction(org.codehaus.plexus.archiver.UnArchiver unArchiver)
                               throws org.codehaus.plexus.archiver.ArchiverException
Specified by:
finalizeArchiveExtraction in interface org.codehaus.plexus.archiver.ArchiveFinalizer
Throws:
org.codehaus.plexus.archiver.ArchiverException

getVirtualFiles

public List<String> getVirtualFiles()
Specified by:
getVirtualFiles in interface org.codehaus.plexus.archiver.ArchiveFinalizer

isSelected

public boolean isSelected(org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo)
                   throws IOException
Specified by:
isSelected in interface org.codehaus.plexus.components.io.fileselectors.FileSelector
Throws:
IOException

readLines

protected void readLines(org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo,
                         List<String> lines)
                  throws IOException
Throws:
IOException

getCatalog

protected final Map<String,List<String>> getCatalog()

setCatalog

protected final void setCatalog(Map<String,List<String>> catalog)


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.