de.uplanet.lucy.server.auxiliaries
Class VelocityUtil

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.VelocityUtil

@VelocityCallable(value="singleton")
public class VelocityUtil
extends java.lang.Object

Version:
$Revision: 72139 $

Nested Class Summary
static class VelocityUtil.VelocityTemplateMerger
           
 
Constructor Summary
VelocityUtil()
           
 
Method Summary
 VelocityUtil.VelocityTemplateMerger createTemplateMerger(de.uplanet.lucy.server.IProcessingContext p_ctx, java.lang.String p_strVm)
          Create a Velocity template merger with a standard Velocity context created from the given processing context.
 VelocityUtil.VelocityTemplateMerger createTemplateMerger(java.lang.String p_strVm)
          Create a Velocity template merger with an empty Velocity context.
 VelocityUtil.VelocityTemplateMerger createTemplateMerger(org.apache.velocity.VelocityContext p_vc, java.lang.String p_strVm)
          Create a Velocity template merger with a given Velocity context.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityUtil

public VelocityUtil()
Method Detail

createTemplateMerger

public VelocityUtil.VelocityTemplateMerger createTemplateMerger(java.lang.String p_strVm)
Create a Velocity template merger with an empty Velocity context.

The context may be populated later through the velocityContext property of the merger.

Parameters:
p_strVm - The Velocity input file.
Returns:
A Velocity template merger.

createTemplateMerger

public VelocityUtil.VelocityTemplateMerger createTemplateMerger(de.uplanet.lucy.server.IProcessingContext p_ctx,
                                                                java.lang.String p_strVm)
Create a Velocity template merger with a standard Velocity context created from the given processing context.

The context may be modified later through the velocityContext property of the merger.

Parameters:
p_ctx - The processing context.
p_strVm - The Velocity input file.
Returns:
A Velocity template merger.

createTemplateMerger

public VelocityUtil.VelocityTemplateMerger createTemplateMerger(org.apache.velocity.VelocityContext p_vc,
                                                                java.lang.String p_strVm)
Create a Velocity template merger with a given Velocity context.

Changes to the Velocity context of the created merger will not affect the given Velocity context.

The context may be modified later through the velocityContext property of the merger.

Parameters:
p_vc - The Velocity context.
p_strVm - The Velocity input file.
Returns:
A Velocity template merger.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.