jvanzyl     01/02/27 00:04:16

  Modified:    src/java/org/apache/velocity/texen Generator.java
  Log:
  - the default context tools no longer have to be derivatives
    of BaseUtil. BaseUtil has been removed and any objects can
    be placed in the initial context.
  
  Revision  Changes    Path
  1.10      +3 -4      
jakarta-velocity/src/java/org/apache/velocity/texen/Generator.java
  
  Index: Generator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/texen/Generator.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Generator.java    2001/01/03 05:28:51     1.9
  +++ Generator.java    2001/02/27 08:04:16     1.10
  @@ -70,7 +70,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Leon Messerschmidt</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
  - * @version $Id: Generator.java,v 1.9 2001/01/03 05:28:51 geirm Exp $ 
  + * @version $Id: Generator.java,v 1.10 2001/02/27 08:04:16 jvanzyl Exp $ 
    */
   public class Generator
   {
  @@ -301,9 +301,8 @@
                   try
                   {
                       Class cls = Class.forName (contextObj);
  -                    BaseUtil b = (BaseUtil)cls.newInstance();
  -                    b.init();
  -                    context.put (contextName,b);
  +                    Object o = cls.newInstance();
  +                    context.put (contextName,o);
                   }
                   catch (Exception e)
                   {
  
  
  

Reply via email to