Class RuleBuilderEnumOptionsResourceHandler
java.lang.Object
org.broadleafcommerce.common.web.resource.AbstractGeneratedResourceHandler
org.broadleafcommerce.openadmin.web.rulebuilder.enums.RuleBuilderEnumOptionsResourceHandler
- All Implemented Interfaces:
org.springframework.core.Ordered
@Component("blRuleBuilderEnumOptionsResourceHandler")
public class RuleBuilderEnumOptionsResourceHandler
extends AbstractGeneratedResourceHandler
Generated resource handler for blc-rulebuilder-options.js.
Delegates to all registered RuleBuilderEnumOptionsExtensionListener
to create the resource
- Author:
- Andre Azzolini (apazzolini)
-
Field Summary
FieldsFields inherited from class org.broadleafcommerce.common.web.resource.AbstractGeneratedResourceHandler
cacheManager, DEFAULT_ORDER, extensionManager, generatedResourceCache, LOG, statisticsService, transUtil
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
getCacheName, getGeneratedResourceCache, getOrder, getRawResource, getResource, getResourceContents
-
Field Details
-
ruleBuilderEnumOptions
-
-
Constructor Details
-
RuleBuilderEnumOptionsResourceHandler
public RuleBuilderEnumOptionsResourceHandler()
-
-
Method Details
-
canHandle
- Specified by:
canHandle
in classAbstractGeneratedResourceHandler
- 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 classAbstractGeneratedResourceHandler
- 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 classAbstractGeneratedResourceHandler
- Returns:
- whether or not the given cachedResource needs to be regenerated
-