@Service(value="blResourceMinificationService") public class ResourceMinificationServiceImpl extends Object implements ResourceMinificationService
ResourceMinificationService| Modifier and Type | Field and Description |
|---|---|
protected boolean |
disableOptimizations |
protected boolean |
enabled |
protected int |
linebreak |
protected static org.apache.commons.logging.Log |
LOG |
protected boolean |
munge |
protected boolean |
preserveAllSemiColons |
protected boolean |
verbose |
| Constructor and Description |
|---|
ResourceMinificationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected org.mozilla.javascript.ErrorReporter |
getLogBasedErrorReporter() |
byte[] |
minify(String filename,
byte[] bytes)
Given the source byte[], will return a byte[] that represents the YUI-compressor minified version
of the byte[].
|
protected static final org.apache.commons.logging.Log LOG
@Value(value="${minify.enabled}")
protected boolean enabled
@Value(value="${minify.linebreak}")
protected int linebreak
@Value(value="${minify.munge}")
protected boolean munge
@Value(value="${minify.verbose}")
protected boolean verbose
@Value(value="${minify.preserveAllSemiColons}")
protected boolean preserveAllSemiColons
@Value(value="${minify.disableOptimizations}")
protected boolean disableOptimizations
public byte[] minify(String filename, byte[] bytes)
ResourceMinificationServiceminify in interface ResourceMinificationServiceprotected org.mozilla.javascript.ErrorReporter getLogBasedErrorReporter()
Copyright © 2014. All rights reserved.