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

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

public final 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.
 
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.

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


Copyright © 2008-2011. All Rights Reserved.