ro.isdc.wro.model.group.processor
Class PreProcessorExecutor

java.lang.Object
  extended by ro.isdc.wro.model.group.processor.PreProcessorExecutor

public class PreProcessorExecutor
extends Object

TODO: refactor this class. Apply all preProcessor on provided Resource and returns the result of execution as String.

This is useful when you want to preProcess a resource which is not a part of the model (css import use-case).

Author:
Alex Objelean

Constructor Summary
PreProcessorExecutor()
           
 
Method Summary
 String processAndMerge(List<Resource> resources, boolean minimize)
          Apply preProcessors on resources and merge them after all preProcessors are applied.
 String processAndMerge(List<Resource> resources, ProcessingCriteria criteria)
          Apply preProcessors on resources and merge them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreProcessorExecutor

public PreProcessorExecutor()
Method Detail

processAndMerge

public String processAndMerge(List<Resource> resources,
                              boolean minimize)
                       throws IOException
Apply preProcessors on resources and merge them after all preProcessors are applied.

Parameters:
resources - what are the resources to merge.
minimize - whether minimize aware processors must be applied or not.
Returns:
preProcessed merged content.
Throws:
IOException

processAndMerge

public String processAndMerge(List<Resource> resources,
                              ProcessingCriteria criteria)
                       throws IOException
Apply preProcessors on resources and merge them.

Parameters:
resources - what are the resources to merge.
criteria - ProcessingCriteria used to identify the processors to apply and those to skip.
Returns:
preProcessed merged content.
Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.