Component
, TemplateProcessor
public 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, isInitialized
public ContextTemplateProcessor(ActivityContext context, TemplateRuleRegistry templateRuleRegistry)
context
- the activity contexttemplateRuleRegistry
- the template rule registrypublic java.lang.String process(java.lang.String templateId)
TemplateProcessor
process
in interface TemplateProcessor
templateId
- the template idpublic java.lang.String process(java.lang.String templateId, java.util.Map<java.lang.String,java.lang.Object> model)
TemplateProcessor
process
in interface TemplateProcessor
templateId
- 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)
TemplateProcessor
process
in interface TemplateProcessor
templateRule
- the template rulemodel
- the holder of the variables visible from the template (name-value pairs)public void process(java.lang.String templateId, Activity activity)
TemplateProcessor
process
in interface TemplateProcessor
templateId
- the template idactivity
- the activitypublic void process(TemplateRule templateRule, Activity activity)
TemplateProcessor
process
in interface TemplateProcessor
templateRule
- the template ruleactivity
- the activitypublic void process(java.lang.String templateId, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model)
TemplateProcessor
process
in interface TemplateProcessor
templateId
- 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)
TemplateProcessor
process
in interface TemplateProcessor
templateId
- 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)
TemplateProcessor
process
in interface TemplateProcessor
templateRule
- 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)
TemplateProcessor
Writer
.process
in interface TemplateProcessor
templateId
- 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)
TemplateProcessor
Writer
.process
in interface TemplateProcessor
templateRule
- 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 AbstractComponent
java.lang.Exception
protected void doDestroy()
doDestroy
in class AbstractComponent
Copyright © 2008–2018 The Aspectran Project. All rights reserved.