public abstract class VelocityLayout extends Object implements Layout
Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.Logger |
log
Logging
|
protected static String |
prefix
The prefix for lookup up layout pages
|
protected VelocityService |
velocityService
Injected service instance
|
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
Constructor and Description |
---|
VelocityLayout() |
Modifier and Type | Method and Description |
---|---|
void |
doBuild(PipelineData pipelineData)
Method called by LayoutLoader.
|
protected abstract void |
populateContext(PipelineData pipelineData,
org.apache.velocity.context.Context context)
Populate Velocity context
|
protected void |
render(PipelineData pipelineData,
org.apache.velocity.context.Context context,
String templateName)
Render layout
|
protected final org.apache.logging.log4j.Logger log
protected static final String prefix
protected VelocityService velocityService
public void doBuild(PipelineData pipelineData) throws Exception
protected abstract void populateContext(PipelineData pipelineData, org.apache.velocity.context.Context context) throws Exception
pipelineData
- PipelineDatacontext
- the Velocity contextException
- if evaluation failsprotected void render(PipelineData pipelineData, org.apache.velocity.context.Context context, String templateName) throws Exception
pipelineData
- PipelineDatacontext
- the Velocity contexttemplateName
- relative path to Velocity templateException
- if rendering failsCopyright © 2000–2019 The Apache Software Foundation. All rights reserved.