ro.isdc.wro.extensions.processor.js
Class PackerJsProcessor
java.lang.Object
ro.isdc.wro.extensions.processor.js.PackerJsProcessor
- All Implemented Interfaces:
- ResourcePostProcessor, ResourcePreProcessor
@Minimize
@SupportedResourceType(value=JS)
public class PackerJsProcessor
- extends Object
- implements ResourcePreProcessor, ResourcePostProcessor
Uses Dean Edwards packer utility to pack js resources.
- Author:
- Alex Objelean
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALIAS
public static final String ALIAS
- See Also:
- Constant Field Values
PackerJsProcessor
public PackerJsProcessor()
process
public void process(Resource resource,
Reader reader,
Writer writer)
throws IOException
-
- Specified by:
process in interface ResourcePreProcessor
- Throws:
IOException
onException
protected void onException(WroRuntimeException e)
- Invoked when a processing exception occurs.
newPackerJs
protected PackerJs newPackerJs()
- Returns:
- PackerJs engine.
process
public void process(Reader reader,
Writer writer)
throws IOException
-
- Specified by:
process in interface ResourcePostProcessor
- Throws:
IOException
Copyright © 2008-2012. All Rights Reserved.