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
Fields Modifier and Type Field Description protected ro.isdc.wro.config.ReadOnlyContext
context
-
Constructor Summary
Constructors Constructor Description AbstractFlavorProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
getAlias()
String
getEncoding()
protected String
getFlavor()
protected boolean
isEnabled(ro.isdc.wro.model.resource.Resource resource)
void
process(ro.isdc.wro.model.resource.Resource resource, Reader reader, Writer writer)
protected abstract void
process(ro.isdc.wro.model.resource.Resource resource, Reader reader, Writer writer, String flavorName)
-
-
-
Method Detail
-
getAlias
public abstract String 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
public String getEncoding()
-
getFlavor
protected String getFlavor()
-
isEnabled
protected boolean isEnabled(ro.isdc.wro.model.resource.Resource resource)
-
-