Class AllHttpScopesAndAppContextHashModel
- java.lang.Object
-
- freemarker.template.WrappingTemplateModel
-
- freemarker.template.SimpleHash
-
- org.craftercms.engine.view.freemarker.AllHttpScopesAndAppContextHashModel
-
- All Implemented Interfaces:
freemarker.template.TemplateHashModel
,freemarker.template.TemplateHashModelEx
,freemarker.template.TemplateHashModelEx2
,freemarker.template.TemplateModel
,Serializable
public class AllHttpScopesAndAppContextHashModel extends freemarker.template.SimpleHash
LikeAllHttpScopesHashModel
, but also lookup keys in the Application Context.- Author:
- Alfonso Vásquez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AllHttpScopesAndAppContextHashModel(freemarker.template.ObjectWrapper wrapper, ApplicationContextAccessor applicationContextAccessor, javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, boolean disableVariableRestrictions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description freemarker.template.TemplateModel
get(String key)
-
Methods inherited from class freemarker.template.SimpleHash
containsKey, copyMap, isEmpty, keys, keyValuePairIterator, put, put, putAll, remove, size, synchronizedWrapper, toMap, toString, values
-
-
-
-
Constructor Detail
-
AllHttpScopesAndAppContextHashModel
public AllHttpScopesAndAppContextHashModel(freemarker.template.ObjectWrapper wrapper, ApplicationContextAccessor applicationContextAccessor, javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, boolean disableVariableRestrictions)
-
-
Method Detail
-
get
public freemarker.template.TemplateModel get(String key) throws freemarker.template.TemplateModelException
- Specified by:
get
in interfacefreemarker.template.TemplateHashModel
- Overrides:
get
in classfreemarker.template.SimpleHash
- Throws:
freemarker.template.TemplateModelException
-
-