Class AbstractFlavorProcessor
java.lang.Object
org.nuxeo.ecm.web.resources.wro.processor.AbstractFlavorProcessor
- All Implemented Interfaces:
ro.isdc.wro.model.resource.processor.ResourcePreProcessor
- Direct Known Subclasses:
FlavorResourceProcessor
,SassCssFlavorProcessor
public abstract class AbstractFlavorProcessor
extends Object
implements ro.isdc.wro.model.resource.processor.ResourcePreProcessor
Extends this class to implement a flavor-based processor.
- Since:
- 7.4
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
context
@Inject protected ro.isdc.wro.config.ReadOnlyContext context
-
-
Constructor Details
-
AbstractFlavorProcessor
public AbstractFlavorProcessor()
-
-
Method Details
-
getAlias
-
process
public void process(ro.isdc.wro.model.resource.Resource resource, Reader reader, Writer writer) throws IOException - Specified by:
process
in interfacero.isdc.wro.model.resource.processor.ResourcePreProcessor
- Throws:
IOException
-
process
protected abstract void process(ro.isdc.wro.model.resource.Resource resource, Reader reader, Writer writer, String flavorName) throws IOException - Throws:
IOException
-
getEncoding
-
getFlavor
-
isEnabled
protected boolean isEnabled(ro.isdc.wro.model.resource.Resource resource)
-