public abstract class AbstractContextExecutionInfo extends Object implements IContextExecutionInfo
Abstract class for IContextExecutionInfo implementations, providing some of the
features required to implement this interface.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractContextExecutionInfo(String templateName,
Calendar now) |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
getNow()
Returns the current date and time (from the moment of template execution).
|
String |
getTemplateName()
Returns the template name.
|
public String getTemplateName()
Returns the template name.
Note that the same template can be resolved with different names due to
aliases, links, etc. This template name refers to the one used to call
the TemplateEngine.process(String, IContext) method.
getTemplateName in interface IContextExecutionInfopublic Calendar getNow()
Returns the current date and time (from the moment of template execution).
getNow in interface IContextExecutionInfoCopyright © 2016 The THYMELEAF team. All rights reserved.