org.broadleafcommerce.common.web.resource
Class BLCJSResourceHandler

java.lang.Object
  extended by org.broadleafcommerce.common.web.resource.AbstractGeneratedResourceHandler
      extended by org.broadleafcommerce.common.web.resource.BLCJSResourceHandler

@Component(value="blBLCJSResourceHandler")
public class BLCJSResourceHandler
extends AbstractGeneratedResourceHandler


Field Summary
protected  RuntimeEnvironmentPropertiesManager propMgr
           
 
Fields inherited from class org.broadleafcommerce.common.web.resource.AbstractGeneratedResourceHandler
generatedResourceCache, LOG, statisticsService
 
Constructor Summary
BLCJSResourceHandler()
           
 
Method Summary
 boolean canHandle(String path)
           
 org.springframework.core.io.Resource getFileContents(String path, List<org.springframework.core.io.Resource> locations)
           
 boolean isCachedResourceExpired(GeneratedResource cachedResource, String path, List<org.springframework.core.io.Resource> locations)
           
 
Methods inherited from class org.broadleafcommerce.common.web.resource.AbstractGeneratedResourceHandler
getGeneratedResourceCache, getRawResource, getResource, getResourceContents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propMgr

@Autowired
protected RuntimeEnvironmentPropertiesManager propMgr
Constructor Detail

BLCJSResourceHandler

public BLCJSResourceHandler()
Method Detail

canHandle

public boolean canHandle(String path)
Specified by:
canHandle in class AbstractGeneratedResourceHandler
Returns:
booelean determining whether or not this handler is able to handle the given request

getFileContents

public org.springframework.core.io.Resource getFileContents(String path,
                                                            List<org.springframework.core.io.Resource> locations)
Specified by:
getFileContents in class AbstractGeneratedResourceHandler
Returns:
the Resource representing this file

isCachedResourceExpired

public boolean isCachedResourceExpired(GeneratedResource cachedResource,
                                       String path,
                                       List<org.springframework.core.io.Resource> locations)
Specified by:
isCachedResourceExpired in class AbstractGeneratedResourceHandler
Returns:
whether or not the given cachedResource needs to be regenerated


Copyright © 2013. All Rights Reserved.