org.nanoko.coffee.mill.processors
Class AggregatorProcessor

java.lang.Object
  extended by org.nanoko.coffee.mill.processors.DefaultProcessor
      extended by org.nanoko.coffee.mill.processors.AggregatorProcessor
All Implemented Interfaces:
Processor
Direct Known Subclasses:
CSSAggregator, JavaScriptAggregator

public abstract class AggregatorProcessor
extends DefaultProcessor

Common facet of aggregator.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nanoko.coffee.mill.processors.Processor
Processor.ProcessorException, Processor.ProcessorWarning
 
Field Summary
 
Fields inherited from class org.nanoko.coffee.mill.processors.DefaultProcessor
mojo, options
 
Constructor Summary
AggregatorProcessor()
           
 
Method Summary
 boolean accept(File file)
           
 void aggregate()
           
 void aggregate(List<File> files, File to)
           
 List<File> computeFileList(List<String> names, File workDir, File libDir, String extension, boolean failedOnMissingFile)
           
 void configure(AbstractCoffeeMillMojo mojo, Map<String,Object> options)
           
 void fileCreated(File file)
           
 void fileDeleted(File file)
           
 void fileUpdated(File file)
           
 void processAll()
           
abstract  void separator(OutputStream out)
           
 void tearDown()
           
 
Methods inherited from class org.nanoko.coffee.mill.processors.DefaultProcessor
computeRelativeFile, copyFileToDir, getLog, isFileContainedInDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregatorProcessor

public AggregatorProcessor()
Method Detail

computeFileList

public List<File> computeFileList(List<String> names,
                                  File workDir,
                                  File libDir,
                                  String extension,
                                  boolean failedOnMissingFile)
                           throws Processor.ProcessorException
Throws:
Processor.ProcessorException

aggregate

public void aggregate(List<File> files,
                      File to)
               throws FileNotFoundException,
                      Processor.ProcessorException
Throws:
FileNotFoundException
Processor.ProcessorException

configure

public void configure(AbstractCoffeeMillMojo mojo,
                      Map<String,Object> options)
Specified by:
configure in interface Processor
Overrides:
configure in class DefaultProcessor

accept

public boolean accept(File file)
Specified by:
accept in interface Processor
Overrides:
accept in class DefaultProcessor

aggregate

public void aggregate()
               throws Processor.ProcessorException
Throws:
Processor.ProcessorException

processAll

public void processAll()
                throws Processor.ProcessorException
Specified by:
processAll in interface Processor
Overrides:
processAll in class DefaultProcessor
Throws:
Processor.ProcessorException

fileCreated

public void fileCreated(File file)
                 throws Processor.ProcessorException
Specified by:
fileCreated in interface Processor
Overrides:
fileCreated in class DefaultProcessor
Throws:
Processor.ProcessorException

fileUpdated

public void fileUpdated(File file)
                 throws Processor.ProcessorException
Specified by:
fileUpdated in interface Processor
Overrides:
fileUpdated in class DefaultProcessor
Throws:
Processor.ProcessorException

fileDeleted

public void fileDeleted(File file)
                 throws Processor.ProcessorException
Specified by:
fileDeleted in interface Processor
Overrides:
fileDeleted in class DefaultProcessor
Throws:
Processor.ProcessorException

tearDown

public void tearDown()
Specified by:
tearDown in interface Processor
Overrides:
tearDown in class DefaultProcessor

separator

public abstract void separator(OutputStream out)
                        throws IOException
Throws:
IOException


Copyright © 2012-2013 OW2. All Rights Reserved.