You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by nb...@apache.org on 2004/11/11 05:07:24 UTC

cvs commit: jakarta-velocity-tools/src/java/org/apache/velocity/tools/view/context ViewContext.java

nbubna      2004/11/10 20:07:24

  Modified:    src/java/org/apache/velocity/tools/view/context
                        ViewContext.java
  Log:
  add getVelocityEngine() method (part of switch from singleton to engine usage)
  
  Revision  Changes    Path
  1.7       +8 -1      jakarta-velocity-tools/src/java/org/apache/velocity/tools/view/context/ViewContext.java
  
  Index: ViewContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity-tools/src/java/org/apache/velocity/tools/view/context/ViewContext.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ViewContext.java	18 Feb 2004 20:07:58 -0000	1.6
  +++ ViewContext.java	11 Nov 2004 04:07:24 -0000	1.7
  @@ -16,6 +16,7 @@
   
   package org.apache.velocity.tools.view.context;
   
  +import org.apache.velocity.app.VelocityEngine;
   import org.apache.velocity.context.Context;
   
   import javax.servlet.http.HttpServletRequest;
  @@ -87,5 +88,11 @@
        * <p>Returns a reference to the current Velocity context.</p>
        */
       public Context getVelocityContext();
  +
  +
  +    /**
  +     * <p>Returns the current VelocityEngine instance.</p>
  +     */
  +    public VelocityEngine getVelocityEngine();
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org