Class 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 Detail

      • context

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

      • AbstractFlavorProcessor

        public AbstractFlavorProcessor()
    • 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 interface ro.isdc.wro.model.resource.processor.ResourcePreProcessor
        Throws:
        IOException
      • getEncoding

        public String getEncoding()
      • getFlavor

        protected String getFlavor()
      • isEnabled

        protected boolean isEnabled​(ro.isdc.wro.model.resource.Resource resource)