public class VelocityScreen extends TemplateScreen
If you need more specific behavior in your application, extend this class and override the doBuildTemplate() method.
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.configuration.Configuration |
conf
Injected configuration instance
|
protected TemplateService |
templateService
Injected service instance
|
protected VelocityService |
velocity
Injected service instance
|
log
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
Constructor and Description |
---|
VelocityScreen() |
Modifier and Type | Method and Description |
---|---|
String |
buildTemplate(PipelineData pipelineData)
This builds the Velocity template.
|
protected void |
doBuildTemplate(PipelineData pipelineData)
Needs to be implemented to make TemplateScreen like us.
|
protected void |
doBuildTemplate(PipelineData pipelineData,
org.apache.velocity.context.Context context)
Velocity Screens extending this class should override this
method to perform any particular business logic and add
information to the context.
|
doBuild, doPostBuildTemplate, doRedirect, doRedirect, setTemplate
build, getLayout, getPrefix, setLayout
getRunData
protected VelocityService velocity
protected TemplateService templateService
protected org.apache.commons.configuration.Configuration conf
public VelocityScreen()
protected void doBuildTemplate(PipelineData pipelineData, org.apache.velocity.context.Context context) throws Exception
pipelineData
- Turbine information.context
- Context for web pages.Exception,
- a generic exception.Exception
protected void doBuildTemplate(PipelineData pipelineData) throws Exception
doBuildTemplate
in class TemplateScreen
pipelineData
- Turbine information.Exception,
- a generic exception.Exception
- A generic exception.public String buildTemplate(PipelineData pipelineData) throws Exception
buildTemplate
in class TemplateScreen
pipelineData
- Turbine information.Exception,
- a generic exception.Exception
- A generic exception.Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.