Class VelocityUtil

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

@VelocityCallable("singleton") public final class VelocityUtil extends Object
  • Constructor Details

    • VelocityUtil

      public VelocityUtil()
  • Method Details

    • 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 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, 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, 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.