Component, TemplateProcessorpublic class ContextTemplateProcessor extends AbstractComponent implements TemplateProcessor
Created: 2016. 1. 14.
| Constructor | Description |
|---|---|
ContextTemplateProcessor(ActivityContext context,
TemplateRuleRegistry templateRuleRegistry) |
Instantiates a new context template processor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
doDestroy() |
|
protected void |
doInitialize() |
|
void |
process(TemplateRule templateRule,
Activity activity) |
Template processing with specified TemplateRule.
|
void |
process(TemplateRule templateRule,
Activity activity,
java.util.Map<java.lang.String,java.lang.Object> model) |
Template processing with specified TemplateRule.
|
void |
process(TemplateRule templateRule,
Activity activity,
java.util.Map<java.lang.String,java.lang.Object> model,
java.io.Writer writer) |
Template processing with specified TemplateRule.
|
java.lang.String |
process(TemplateRule templateRule,
java.util.Map<java.lang.String,java.lang.Object> model) |
Template processing with specified TemplateRule.
|
java.lang.String |
process(java.lang.String templateId) |
Template processing with specified TemplateRule by its ID.
|
void |
process(java.lang.String templateId,
Activity activity) |
Template processing with specified TemplateRule by its ID.
|
void |
process(java.lang.String templateId,
Activity activity,
java.io.Writer writer) |
Template processing with specified TemplateRule by its ID.
|
void |
process(java.lang.String templateId,
Activity activity,
java.util.Map<java.lang.String,java.lang.Object> model) |
Template processing with specified TemplateRule by its ID.
|
void |
process(java.lang.String templateId,
Activity activity,
java.util.Map<java.lang.String,java.lang.Object> model,
java.io.Writer writer) |
Template processing with specified TemplateRule by its ID.
|
java.lang.String |
process(java.lang.String templateId,
java.util.Map<java.lang.String,java.lang.Object> model) |
Template processing with specified TemplateRule by its ID.
|
destroy, getComponentName, initialize, isAvailable, isDestroyed, isInitializedpublic ContextTemplateProcessor(ActivityContext context, TemplateRuleRegistry templateRuleRegistry)
context - the activity contexttemplateRuleRegistry - the template rule registrypublic java.lang.String process(java.lang.String templateId)
TemplateProcessorprocess in interface TemplateProcessortemplateId - the template idpublic java.lang.String process(java.lang.String templateId,
java.util.Map<java.lang.String,java.lang.Object> model)
TemplateProcessorprocess in interface TemplateProcessortemplateId - the template idmodel - the holder of the variables visible from the template (name-value pairs)public java.lang.String process(TemplateRule templateRule, java.util.Map<java.lang.String,java.lang.Object> model)
TemplateProcessorprocess in interface TemplateProcessortemplateRule - the template rulemodel - the holder of the variables visible from the template (name-value pairs)public void process(java.lang.String templateId,
Activity activity)
TemplateProcessorprocess in interface TemplateProcessortemplateId - the template idactivity - the activitypublic void process(TemplateRule templateRule, Activity activity)
TemplateProcessorprocess in interface TemplateProcessortemplateRule - the template ruleactivity - the activitypublic void process(java.lang.String templateId,
Activity activity,
java.util.Map<java.lang.String,java.lang.Object> model)
TemplateProcessorprocess in interface TemplateProcessortemplateId - the template idactivity - the activitymodel - the holder of the variables visible from the template (name-value pairs)public void process(java.lang.String templateId,
Activity activity,
java.io.Writer writer)
TemplateProcessorprocess in interface TemplateProcessortemplateId - the template idactivity - the activitywriter - the Writer where the output of the template will go.
Writer.close() is not called.public void process(TemplateRule templateRule, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model)
TemplateProcessorprocess in interface TemplateProcessortemplateRule - the template ruleactivity - the activitymodel - the holder of the variables visible from the template (name-value pairs)public void process(java.lang.String templateId,
Activity activity,
java.util.Map<java.lang.String,java.lang.Object> model,
java.io.Writer writer)
TemplateProcessorWriter.process in interface TemplateProcessortemplateId - the template idactivity - the activitymodel - the holder of the variables visible from the template (name-value pairs)writer - the Writer where the output of the template will go.
Writer.close() is not called.public void process(TemplateRule templateRule, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model, java.io.Writer writer)
TemplateProcessorWriter.process in interface TemplateProcessortemplateRule - the template ruleactivity - the activitymodel - the holder of the variables visible from the template (name-value pairs)writer - the Writer where the output of the template will go.
Writer.close() is not called.protected void doInitialize()
throws java.lang.Exception
doInitialize in class AbstractComponentjava.lang.Exceptionprotected void doDestroy()
doDestroy in class AbstractComponentCopyright © 2008–2018 The Aspectran Project. All rights reserved.