Class TemplateContextHelper
java.lang.Object
fr.opensagres.xdocreport.template.TemplateContextHelper
Helper to register and retrieves default Java model for the
IContext.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ITemplateEnginegetTemplateEngine(IContext context) Retrieves the template engine from the given context.static voidputContext(IContext context) Register the given context in the given context.static voidputTemplateEngine(IContext context, ITemplateEngine templateEngine) Register the given template engine in the given context.
-
Field Details
-
CONTEXT_KEY
- See Also:
-
TEMPLATE_ENGINE_KEY
- See Also:
-
TEXT_STYLING_REGISTRY_KEY
- See Also:
-
TRANSFORM_METHOD
- See Also:
-
IMAGE_REGISTRY_KEY
- See Also:
-
-
Constructor Details
-
TemplateContextHelper
public TemplateContextHelper()
-
-
Method Details
-
putContext
Register the given context in the given context. With that it's possible to retrieves the context in template engine directive.- Parameters:
context-
-
putTemplateEngine
Register the given template engine in the given context.- Parameters:
context-templateEngine-
-
getTemplateEngine
Retrieves the template engine from the given context.- Parameters:
context-- Returns:
-