org.broadleafcommerce.common.web.processor
Class ResourceBundleProcessor

java.lang.Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.element.AbstractElementProcessor
          extended by org.broadleafcommerce.common.web.processor.ResourceBundleProcessor
All Implemented Interfaces:
Comparable<org.thymeleaf.processor.IProcessor>, org.thymeleaf.processor.IProcessor

@Component(value="blResourceBundleProcessor")
public class ResourceBundleProcessor
extends org.thymeleaf.processor.element.AbstractElementProcessor

A Thymeleaf processor that will take in a list of resource files to merge.

Author:
apazzolini

Field Summary
protected  boolean bundleEnabled
           
protected  ResourceBundlingService bundlingService
           
 
Constructor Summary
ResourceBundleProcessor()
           
 
Method Summary
protected  org.thymeleaf.dom.Element getElement(String src)
           
protected  org.thymeleaf.dom.Element getLinkElement(String src)
           
 int getPrecedence()
           
protected  BroadleafResourceHttpRequestHandler getRequestHandler(String name, org.thymeleaf.Arguments arguments)
           
protected  org.thymeleaf.dom.Element getScriptElement(String src)
           
protected  org.thymeleaf.processor.ProcessorResult processElement(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element)
           
 
Methods inherited from class org.thymeleaf.processor.element.AbstractElementProcessor
doProcess, getMatcher
 
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundlingService

protected ResourceBundlingService bundlingService

bundleEnabled

@Value(value="${bundle.enabled}")
protected boolean bundleEnabled
Constructor Detail

ResourceBundleProcessor

public ResourceBundleProcessor()
Method Detail

getPrecedence

public int getPrecedence()
Specified by:
getPrecedence in class org.thymeleaf.processor.AbstractProcessor

processElement

protected org.thymeleaf.processor.ProcessorResult processElement(org.thymeleaf.Arguments arguments,
                                                                 org.thymeleaf.dom.Element element)
Specified by:
processElement in class org.thymeleaf.processor.element.AbstractElementProcessor

getScriptElement

protected org.thymeleaf.dom.Element getScriptElement(String src)

getLinkElement

protected org.thymeleaf.dom.Element getLinkElement(String src)

getElement

protected org.thymeleaf.dom.Element getElement(String src)

getRequestHandler

protected BroadleafResourceHttpRequestHandler getRequestHandler(String name,
                                                                org.thymeleaf.Arguments arguments)


Copyright © 2013. All Rights Reserved.