Class ClosureCompressorPlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.portal.resource.compressor.BaseResourceCompressorPlugin
org.exoplatform.portal.resource.compressor.impl.ClosureCompressorPlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin,ResourceCompressorPlugin
A compressor based on the Google Closure Tools javascript compiler. This plugin
compresses javascript resources and provides three levels of compression, configured via the
level init param:
basicencodes with theWHITESPACE_ONLYClosure levelsimpleencodes with theSIMPLE_OPTIMIZATIONSClosure leveladvancedencodes with theADVANCED_OPTIMIZATIONSClosure level
-
Field Summary
Fields inherited from class org.exoplatform.portal.resource.compressor.BaseResourceCompressorPlugin
logFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCompress the specified input and produce compressed output.getLevel()Return resource type this plugin could compress.voidMethods inherited from class org.exoplatform.portal.resource.compressor.BaseResourceCompressorPlugin
getPriority, getTypeMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.portal.resource.compressor.ResourceCompressorPlugin
getName
-
Constructor Details
-
ClosureCompressorPlugin
public ClosureCompressorPlugin(org.exoplatform.container.xml.InitParams params)
-
-
Method Details
-
getLevel
-
setLevel
-
getResourceType
Description copied from interface:ResourceCompressorPluginReturn resource type this plugin could compress.- Returns:
-
compress
Description copied from interface:ResourceCompressorPluginCompress the specified input and produce compressed output.- Parameters:
input-output-- Throws:
ResourceCompressorException
-