/**
* @return the map of pre processors.
*/
private Map<String, ResourcePreProcessor> createMap() {
final Map<String, ResourcePreProcessor> map = new HashMap<String, ResourcePreProcessor>();
map.put(YUICssCompressorProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new YUICssCompressorProcessor();
}
}));
map.put(DojoShrinksafeCompressorProcessor.ALIAS, new LazyProcessorDecorator(
new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new DojoShrinksafeCompressorProcessor();
}
}));
map.put(UglifyJsProcessor.ALIAS_UGLIFY, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new UglifyJsProcessor();
}
}));
map.put(BeautifyJsProcessor.ALIAS_BEAUTIFY, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new BeautifyJsProcessor();
}
}));
map.put(PackerJsProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new PackerJsProcessor();
}
}));
map.put(RhinoLessCssProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new RhinoLessCssProcessor();
}
}));
map.put(NodeLessCssProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new NodeLessCssProcessor();
}
}));
map.put(Less4jProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new Less4jProcessor();
}
}));
map.put(LessCssProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new LessCssProcessor();
}
}));
map.put(SassCssProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new SassCssProcessor();
}
}));
map.put(RubySassCssProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new RubySassCssProcessor();
}
}));
map.put(BourbonCssProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new BourbonCssProcessor();
}
}));
map.put(GoogleClosureCompressorProcessor.ALIAS_SIMPLE, new LazyProcessorDecorator(
new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new GoogleClosureCompressorProcessor(CompilationLevel.SIMPLE_OPTIMIZATIONS);
}
}));
map.put(GoogleClosureCompressorProcessor.ALIAS_ADVANCED, new LazyProcessorDecorator(
new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new GoogleClosureCompressorProcessor(CompilationLevel.ADVANCED_OPTIMIZATIONS);
}
}));
map.put(GoogleClosureCompressorProcessor.ALIAS_WHITESPACE_ONLY, new LazyProcessorDecorator(
new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new GoogleClosureCompressorProcessor(CompilationLevel.WHITESPACE_ONLY);
}
}));
map.put(RhinoCoffeeScriptProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new RhinoCoffeeScriptProcessor();
}
}));
map.put(NodeCoffeeScriptProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new NodeCoffeeScriptProcessor();
}
}));
map.put(CoffeeScriptProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new CoffeeScriptProcessor();
}
}));
map.put(CJsonProcessor.ALIAS_PACK, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return CJsonProcessor.packProcessor();
}
}));
map.put(CJsonProcessor.ALIAS_UNPACK, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return CJsonProcessor.unpackProcessor();
}
}));
map.put(JsonHPackProcessor.ALIAS_PACK, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return JsonHPackProcessor.packProcessor();
}
}));
map.put(JsonHPackProcessor.ALIAS_UNPACK, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return JsonHPackProcessor.unpackProcessor();
}
}));
map.put(JsHintProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new JsHintProcessor();
}
}));
map.put(JsLintProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new JsLintProcessor();
}
}));
map.put(CssLintProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new CssLintProcessor();
}
}));
map.put(DustJsProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new DustJsProcessor();
}
}));
map.put(HoganJsProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new HoganJsProcessor();
}
}));
map.put(HandlebarsJsProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new HandlebarsJsProcessor();
}
}));
map.put(RhinoTypeScriptProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new RhinoTypeScriptProcessor();
}
}));
map.put(TypeScriptProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new TypeScriptProcessor();
}
}));
map.put(NodeTypeScriptProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new NodeTypeScriptProcessor();
}
}));
map.put(EmberJsProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new EmberJsProcessor();
}
}));
map.put(NgMinProcessor.ALIAS, new LazyProcessorDecorator(new LazyInitializer<ResourcePreProcessor>() {
@Override
protected ResourcePreProcessor initialize() {
return new NgMinProcessor();
}
}));