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 the IMarkupParser
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 into ITemplateHandler
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.
Constructor and Description |
---|
DecoupledTemplateLogic() |
Modifier and Type | Method and Description |
---|---|
void |
addInjectedAttribute(String selector,
DecoupledInjectedAttribute injectedAttribute) |
Set<String> |
getAllInjectedAttributeSelectors() |
List<DecoupledInjectedAttribute> |
getInjectedAttributesForSelector(String selector) |
boolean |
hasInjectedAttributes() |
String |
toString() |
public boolean hasInjectedAttributes()
public List<DecoupledInjectedAttribute> getInjectedAttributesForSelector(String selector)
public void addInjectedAttribute(String selector, DecoupledInjectedAttribute injectedAttribute)
Copyright © 2016 The THYMELEAF team. All rights reserved.