public class WebResourcesModule extends Object
Constructor and Description |
---|
WebResourcesModule() |
Modifier and Type | Method and Description |
---|---|
static void |
bind(ServiceBinder binder) |
static void |
provideCompilers(MappedConfiguration<String,ResourceTransformer> configuration,
ResourceTransformerFactory factory,
CoffeeScriptCompiler coffeeScriptCompiler) |
static void |
provideLessCompilerProblemRenderer(MappedConfiguration<Class,ObjectRenderer> configuration)
Alas
AntlrException s do not have a useful toString() which makes them useless in the exception report;
here we provide an ObjectRenderer that breaks them apart into useful strings. |
static void |
setupDefaultCacheDirectory(MappedConfiguration<String,Object> configuration) |
static void |
setupDefaultResourceMinimizers(MappedConfiguration<String,ResourceMinimizer> configuration) |
public WebResourcesModule()
public static void bind(ServiceBinder binder)
@Contribute(value=SymbolProvider.class) @FactoryDefaults public static void setupDefaultCacheDirectory(MappedConfiguration<String,Object> configuration)
@Contribute(value=StreamableResourceSource.class) public static void provideCompilers(MappedConfiguration<String,ResourceTransformer> configuration, ResourceTransformerFactory factory, @Autobuild CoffeeScriptCompiler coffeeScriptCompiler)
@Contribute(value=ResourceMinimizer.class) @Primary public static void setupDefaultResourceMinimizers(MappedConfiguration<String,ResourceMinimizer> configuration)
@Contribute(value=ObjectRenderer.class) @Primary public static void provideLessCompilerProblemRenderer(MappedConfiguration<Class,ObjectRenderer> configuration)
AntlrException
s do not have a useful toString() which makes them useless in the exception report;
here we provide an ObjectRenderer
that breaks them apart into useful strings. Eventually we may be
able to synthesize a Location
from them as well and show some of the source .less file.${project.version} - Copyright © 2003-2015 The Apache Software Foundation.