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 Details

    • context

      @Inject protected ro.isdc.wro.config.ReadOnlyContext context
  • Constructor Details

    • AbstractFlavorProcessor

      public AbstractFlavorProcessor()
  • Method Details

    • 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 interface ro.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)