|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectorg.thymeleaf.context.AbstractContext
org.thymeleaf.context.Context
public class Context
Standard implementation of IContext.
This IContext implementation uses a ContextExecutionInfo object as its
IContextExecutionInfo implementation.
If Thymeleaf is used for the creation of an HTML/XHTML interface in a
web application, an implementation of the IWebContext interface should be
used instead.
| Field Summary |
|---|
| Fields inherited from class org.thymeleaf.context.AbstractContext |
|---|
EXEC_INFO_VARIABLE_NAME |
| Constructor Summary | |
|---|---|
Context()
Create an instance without specifying a locale. |
|
Context(Locale locale)
Create an instance specifying a locale. |
|
Context(Locale locale,
Map<String,?> variables)
Create an instance specifying a locale and an initial set of context variables. |
|
| Method Summary | |
|---|---|
protected IContextExecutionInfo |
buildContextExecutionInfo(String templateName)
Creates the specific instance of IContextExecutionInfo to be added
to the context as the execInfo variable. |
| Methods inherited from class org.thymeleaf.context.AbstractContext |
|---|
addContextExecutionInfo, clearVariables, getLocale, getVariables, setLocale, setVariable, setVariables |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Context()
Create an instance without specifying a locale. Using this constructor, the default locale (Locale.getDefault()) will be used.
public Context(Locale locale)
Create an instance specifying a locale.
locale - the locale to be used.
public Context(Locale locale,
Map<String,?> variables)
Create an instance specifying a locale and an initial set of context variables.
locale - the locale to be used.variables - the initial set of context variables.| Method Detail |
|---|
protected IContextExecutionInfo buildContextExecutionInfo(String templateName)
AbstractContext
Creates the specific instance of IContextExecutionInfo to be added
to the context as the execInfo variable.
buildContextExecutionInfo in class AbstractContexttemplateName - the name of the template being executed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||