public class GoogleClosureMinimizer extends AbstractMinimizer
Compiler
used to minimize
a JavaScript resource.logger, tracker
Constructor and Description |
---|
GoogleClosureMinimizer(org.slf4j.Logger logger,
OperationTracker tracker,
AssetChecksumGenerator checksumGenerator,
Request request,
com.google.javascript.jscomp.CompilationLevel compilationLevel) |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
doMinimize(StreamableResource resource)
Implemented in subclasses to do the actual work.
|
protected boolean |
isEnabled(StreamableResource resource)
Determines if the resource can be minimized.
|
minimize
public GoogleClosureMinimizer(org.slf4j.Logger logger, OperationTracker tracker, AssetChecksumGenerator checksumGenerator, Request request, @Symbol(value="tapestry.closure-compiler-level") com.google.javascript.jscomp.CompilationLevel compilationLevel)
protected boolean isEnabled(StreamableResource resource)
AbstractMinimizer
isEnabled
in class AbstractMinimizer
protected InputStream doMinimize(StreamableResource resource) throws IOException
AbstractMinimizer
doMinimize
in class AbstractMinimizer
resource
- content to minimizeIOException
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.