Class BeautifyJsProcessor
java.lang.Object
ro.isdc.wro.extensions.processor.js.BeautifyJsProcessor
- All Implemented Interfaces:
Destroyable,ResourcePostProcessor,ResourcePreProcessor
- Direct Known Subclasses:
UglifyJsProcessor
@SupportedResourceType(JS)
public class BeautifyJsProcessor
extends Object
implements ResourcePreProcessor, ResourcePostProcessor, Destroyable
Perform a beautify operation on javascript by nicely formatting it.
- Since:
- 1.3.1
- Author:
- Alex Objelean
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ALIAS_BEAUTIFY
- See Also:
-
-
Constructor Details
-
BeautifyJsProcessor
public BeautifyJsProcessor()Default constructor. Instantiates uglifyJs engine.
-
-
Method Details
-
newEngine
- Returns:
- new instance of
UglifyJsengine.
-
process
- Specified by:
processin interfaceResourcePreProcessor- Throws:
IOException
-
onException
Invoked when a processing exception occurs. -
process
- Specified by:
processin interfaceResourcePostProcessor- Throws:
IOException
-
destroy
- Specified by:
destroyin interfaceDestroyable- Throws:
Exception
-