Class DecoupledTemplateLogic
- Object
-
- org.thymeleaf.templateparser.markup.decoupled.DecoupledTemplateLogic
-
public final class DecoupledTemplateLogic extends Object
This class specifies containers for decoupled template logic, normally coming from separate template files (decoupled templates).
Instances of this class are built and populated by instances of
DecoupledTemplateLogicBuilderMarkupHandler
, acting as handlers on theIMarkupParser
being used for parsing the normal template resources.Once built and populated, instances of this class are handled over to
TemplateHandlerAdapterMarkupHandler
instances which are one of the steps in the template parsing chain (converting parser events intoITemplateHandler
events). Attributes specified here to be injected into the template are injected at real-time during the parsing operation itself, so that overhead is minimal (and zero once the template is cached).Instances of this class are not thread-safe.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Constructor Description DecoupledTemplateLogic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInjectedAttribute(String selector, DecoupledInjectedAttribute injectedAttribute)
Set<String>
getAllInjectedAttributeSelectors()
List<DecoupledInjectedAttribute>
getInjectedAttributesForSelector(String selector)
boolean
hasInjectedAttributes()
String
toString()
-
-
-
Method Detail
-
hasInjectedAttributes
public boolean hasInjectedAttributes()
-
getInjectedAttributesForSelector
public List<DecoupledInjectedAttribute> getInjectedAttributesForSelector(String selector)
-
addInjectedAttribute
public void addInjectedAttribute(String selector, DecoupledInjectedAttribute injectedAttribute)
-
-