@SupportedResourceType(value=JS) public class RhinoTypeScriptProcessor extends Object implements ResourcePreProcessor, ResourcePostProcessor, Destroyable
| Constructor and Description |
|---|
RhinoTypeScriptProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected TypeScriptCompiler |
newCompiler() |
protected void |
onException(Exception e,
String content)
Invoked when a processing exception occurs.
|
void |
process(Reader reader,
Writer writer) |
void |
process(Resource resource,
Reader reader,
Writer writer) |
public static final String ALIAS
public void process(Resource resource, Reader reader, Writer writer) throws IOException
process in interface ResourcePreProcessorIOExceptionprotected void onException(Exception e, String content)
protected TypeScriptCompiler newCompiler()
TypeScriptCompiler engine implementation. Override it to provide a different version of the typescript.js
library. Useful for upgrading the processor outside the wro4j release.public void process(Reader reader, Writer writer) throws IOException
process in interface ResourcePostProcessorIOExceptionpublic void destroy()
throws Exception
destroy in interface DestroyableExceptionCopyright © 2008-2016. All Rights Reserved.