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 org.broadleafcommerce.common.web.resource.AbstractGeneratedResourceHandler
Generated resource handler for blc-rulebuilder-options.js.

Delegates to all registered RuleBuilderEnumOptionsExtensionListener to create the resource

Author:
Andre Azzolini (apazzolini)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.springframework.core.io.Resource
    getFileContents(String path, List<org.springframework.core.io.Resource> locations)
     
    boolean
    isCachedResourceExpired(org.broadleafcommerce.common.resource.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • RuleBuilderEnumOptionsResourceHandler

      public RuleBuilderEnumOptionsResourceHandler()
  • Method Details

    • canHandle

      public boolean canHandle(String path)
      Specified by:
      canHandle in class org.broadleafcommerce.common.web.resource.AbstractGeneratedResourceHandler
    • getFileContents

      public org.springframework.core.io.Resource getFileContents(String path, List<org.springframework.core.io.Resource> locations)
      Specified by:
      getFileContents in class org.broadleafcommerce.common.web.resource.AbstractGeneratedResourceHandler
    • isCachedResourceExpired

      public boolean isCachedResourceExpired(org.broadleafcommerce.common.resource.GeneratedResource cachedResource, String path, List<org.springframework.core.io.Resource> locations)
      Specified by:
      isCachedResourceExpired in class org.broadleafcommerce.common.web.resource.AbstractGeneratedResourceHandler