Class RhinoCoffeeScriptProcessor
java.lang.Object
ro.isdc.wro.extensions.processor.js.RhinoCoffeeScriptProcessor
- All Implemented Interfaces:
Destroyable,ResourcePostProcessor,ResourcePreProcessor
- Direct Known Subclasses:
RhinoLiterateCoffeeScriptProcessor
@SupportedResourceType(JS)
public class RhinoCoffeeScriptProcessor
extends Object
implements ResourcePreProcessor, ResourcePostProcessor, Destroyable
Uses coffee script library loaded from the webjar to compile to javascript code.
- Since:
- 1.3.6
- Author:
- Alex Objelean
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()protected CoffeeScriptprotected voidInvoked when a processing exception occurs.voidvoid
-
Field Details
-
ALIAS
- See Also:
-
-
Constructor Details
-
RhinoCoffeeScriptProcessor
public RhinoCoffeeScriptProcessor()
-
-
Method Details
-
process
- Specified by:
processin interfaceResourcePreProcessor- Throws:
IOException
-
onException
Invoked when a processing exception occurs. -
newCoffeeScript
- Returns:
- the
CoffeeScriptengine implementation. Override it to provide a different version of the coffeeScript.js library. Useful for upgrading the processor outside the wro4j release.
-
process
- Specified by:
processin interfaceResourcePostProcessor- Throws:
IOException
-
destroy
- Specified by:
destroyin interfaceDestroyable- Throws:
Exception
-