Class BroadleafThymeleaf3DatabaseResourceResolver

java.lang.Object
org.broadleafcommerce.presentation.thymeleaf3.resolver.BroadleafThymeleaf3DatabaseResourceResolver
All Implemented Interfaces:
org.thymeleaf.templateresource.ITemplateResource

public class BroadleafThymeleaf3DatabaseResourceResolver extends Object implements org.thymeleaf.templateresource.ITemplateResource
An implementation of ITemplateResource that provides an extension point for retrieving templates from the database.
Author:
Andre Azzolini (apazzolini)
  • Field Details

    • blcContextUtil

      protected org.broadleafcommerce.common.web.resource.BroadleafContextUtil blcContextUtil
    • extensionManager

      protected org.broadleafcommerce.core.web.resolver.DatabaseResourceResolverExtensionManager extensionManager
    • path

      protected String path
  • Constructor Details

    • BroadleafThymeleaf3DatabaseResourceResolver

      public BroadleafThymeleaf3DatabaseResourceResolver(org.broadleafcommerce.core.web.resolver.DatabaseResourceResolverExtensionManager extensionManager, org.broadleafcommerce.common.web.resource.BroadleafContextUtil blcContextUtil, String path)
  • Method Details

    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.thymeleaf.templateresource.ITemplateResource
    • getBaseName

      public String getBaseName()
      Specified by:
      getBaseName in interface org.thymeleaf.templateresource.ITemplateResource
    • exists

      public boolean exists()
      Specified by:
      exists in interface org.thymeleaf.templateresource.ITemplateResource
    • reader

      public Reader reader() throws IOException
      Specified by:
      reader in interface org.thymeleaf.templateresource.ITemplateResource
      Throws:
      IOException
    • relative

      public org.thymeleaf.templateresource.ITemplateResource relative(String relativeLocation)
      Specified by:
      relative in interface org.thymeleaf.templateresource.ITemplateResource
    • resolveResource

      protected InputStream resolveResource()