Class VelocityUtil
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.VelocityUtil
-
@VelocityCallable("singleton") public final class VelocityUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVelocityUtil.VelocityTemplateMerger
-
Constructor Summary
Constructors Constructor Description VelocityUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VelocityUtil.VelocityTemplateMergercreateTemplateMerger(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strVm)Create a Velocity template merger with a standard Velocity context created from the given processing context.VelocityUtil.VelocityTemplateMergercreateTemplateMerger(String p_strVm)Create a Velocity template merger with an empty Velocity context.VelocityUtil.VelocityTemplateMergercreateTemplateMerger(org.apache.velocity.VelocityContext p_vc, String p_strVm)Create a Velocity template merger with a given Velocity context.
-
-
-
Method Detail
-
createTemplateMerger
public VelocityUtil.VelocityTemplateMerger createTemplateMerger(String p_strVm)
Create a Velocity template merger with an empty Velocity context.The context may be populated later through the
velocityContextproperty 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, 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
velocityContextproperty 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, 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
velocityContextproperty of the merger.- Parameters:
p_vc- The Velocity context.p_strVm- The Velocity input file.- Returns:
- A Velocity template merger.
-
-