@Service(value="blResourceMinificationService") public class ResourceMinificationServiceImpl extends Object implements ResourceMinificationService
ResourceMinificationService| Modifier and Type | Field and Description |
|---|---|
protected boolean |
disableOptimizations |
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 |
|---|---|
boolean |
getAllowSingleMinification()
Indicates whether or not the system is allowed to attempt to minify individual files.
|
boolean |
getEnabled()
Indicates whether or not the system is allowed to minify bundled resources.
|
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.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 boolean getEnabled()
ResourceMinificationServicegetEnabled in interface ResourceMinificationServicepublic boolean getAllowSingleMinification()
ResourceMinificationServicegetAllowSingleMinification in interface ResourceMinificationServicepublic byte[] minify(String filename, byte[] bytes)
ResourceMinificationServiceminify in interface ResourceMinificationServiceprotected org.mozilla.javascript.ErrorReporter getLogBasedErrorReporter()
Copyright © 2014. All rights reserved.