ro.isdc.wro.extensions.manager.YUIServletContextAwareWroManagerFactory Maven / Gradle / Ivy
/**
* Copyright Alex Objelean
*/
package ro.isdc.wro.extensions.manager;
import ro.isdc.wro.extensions.processor.css.YUICssCompressorProcessor;
import ro.isdc.wro.extensions.processor.js.YUIJsCompressorProcessor;
import ro.isdc.wro.manager.factory.BaseWroManagerFactory;
import ro.isdc.wro.model.resource.processor.factory.ProcessorsFactory;
import ro.isdc.wro.model.resource.processor.factory.SimpleProcessorsFactory;
import ro.isdc.wro.model.resource.processor.impl.css.CssImportPreProcessor;
import ro.isdc.wro.model.resource.processor.impl.css.CssUrlRewritingProcessor;
import ro.isdc.wro.model.resource.processor.impl.css.CssVariablesProcessor;
import ro.isdc.wro.model.resource.processor.impl.js.SemicolonAppenderPreProcessor;
/**
* A factory which use YUI specific GroupProcessors
*
* @author Alex Objelean
*/
public class YUIServletContextAwareWroManagerFactory extends BaseWroManagerFactory {
/**
* {@inheritDoc}
*/
@Override
protected ProcessorsFactory newProcessorsFactory() {
final SimpleProcessorsFactory factory = new SimpleProcessorsFactory();
factory.addPreProcessor(new CssUrlRewritingProcessor());
factory.addPreProcessor(new CssImportPreProcessor());
factory.addPreProcessor(new SemicolonAppenderPreProcessor());
factory.addPreProcessor(new YUICssCompressorProcessor());
factory.addPreProcessor(YUIJsCompressorProcessor.doMungeCompressor());
factory.addPostProcessor(new CssVariablesProcessor());
return factory;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy