Class AbstractBroadleafTagReplacementProcessor

java.lang.Object
org.broadleafcommerce.presentation.dialect.AbstractBroadleafTagReplacementProcessor
All Implemented Interfaces:
BroadleafProcessor, BroadleafTagReplacementProcessor

public abstract class AbstractBroadleafTagReplacementProcessor extends Object implements BroadleafTagReplacementProcessor
Default implementation of BroadleafTagReplacementProcessor that provides some defaults
Author:
Jay Aisenbrey (cja769)
  • Constructor Details

    • AbstractBroadleafTagReplacementProcessor

      public AbstractBroadleafTagReplacementProcessor()
  • Method Details

    • replacementNeedsProcessing

      public boolean replacementNeedsProcessing()
      Specified by:
      replacementNeedsProcessing in interface BroadleafTagReplacementProcessor
      Returns:
      true if the model returned has template logic that needs to reprocessed. This should return true if any of the elements added to the resulting BroadleafTemplateModel from the given BroadleafTemplateContext have additional expressions or includes that are template-processing specific (e.g. extra includes, addition of new variables in the tags, etc).
    • getPrecedence

      public int getPrecedence()
      Specified by:
      getPrecedence in interface BroadleafProcessor
      Returns:
      When this processor should be ran in relation to other processors in the dialect. Runs from smallest number to largest
    • getPrefix

      public String getPrefix()
      Specified by:
      getPrefix in interface BroadleafProcessor
      Returns:
      The prefix that should be prepended to the name for the class to be triggered on. The "blc" part of blc:price