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)
-
Field Summary
Fields inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
DEFAULT_PRECEDENCE, DEFAULT_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
getNameMethods inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafTagReplacementProcessor
getReplacementModel
-
Constructor Details
-
AbstractBroadleafTagReplacementProcessor
public AbstractBroadleafTagReplacementProcessor()
-
-
Method Details
-
replacementNeedsProcessing
public boolean replacementNeedsProcessing()- Specified by:
replacementNeedsProcessingin interfaceBroadleafTagReplacementProcessor- 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
BroadleafTemplateModelfrom the givenBroadleafTemplateContexthave 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:
getPrecedencein interfaceBroadleafProcessor- Returns:
- When this processor should be ran in relation to other processors in the dialect. Runs from smallest number to largest
-
getPrefix
- Specified by:
getPrefixin interfaceBroadleafProcessor- Returns:
- The prefix that should be prepended to the name for the class to be triggered on.
The "blc" part of
blc:price
-