org.broadleafcommerce.common.resource.service
Interface ResourceMinificationService

All Known Implementing Classes:
ResourceMinificationServiceImpl

public interface ResourceMinificationService

Service responsible for interacting with YUI-compressor to minify JS/CSS resources.

Author:
Andre Azzolini (apazzolini)

Method Summary
 byte[] minify(String filename, byte[] bytes)
          Given the source byte[], will return a byte[] that represents the YUI-compressor minified version of the byte[].
 

Method Detail

minify

byte[] minify(String filename,
              byte[] bytes)
Given the source byte[], will return a byte[] that represents the YUI-compressor minified version of the byte[]. The behavior of this method is controlled via the following properties:

Parameters:
filename -
bytes -
Returns:
the minified bytes


Copyright © 2013. All Rights Reserved.