velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject cvs commit: jakarta-velocity/examples/logger_example LoggerExample.java
Date Sun, 09 Sep 2001 07:26:24 GMT
geirm       01/09/09 00:26:24

  Modified:    examples/event_example EventExample.java
               examples/logger_example LoggerExample.java
  Log:
  Small fixes to reflect the new needs of LogSystem due to
  separate instances.
  
  Revision  Changes    Path
  1.3       +11 -1     jakarta-velocity/examples/event_example/EventExample.java
  
  Index: EventExample.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/examples/event_example/EventExample.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- EventExample.java	2001/05/20 21:08:12	1.2
  +++ EventExample.java	2001/09/09 07:26:24	1.3
  @@ -61,6 +61,7 @@
   import org.apache.velocity.exception.MethodInvocationException;
   
   import org.apache.velocity.runtime.log.LogSystem;
  +import org.apache.velocity.runtime.RuntimeServices;
   
   import org.apache.velocity.app.event.EventCartridge;
   import org.apache.velocity.app.event.ReferenceInsertionEventHandler;
  @@ -76,7 +77,7 @@
    *   when testing the NullSetEventHandler
    *
    * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
  - * @version $Id: EventExample.java,v 1.2 2001/05/20 21:08:12 geirm Exp $
  + * @version $Id: EventExample.java,v 1.3 2001/09/09 07:26:24 geirm Exp $
    */
   
   public class EventExample implements ReferenceInsertionEventHandler, 
  @@ -333,6 +334,15 @@
   
           throw e;
       } 
  +
  +	/**
  +	 *  Required init method for LogSystem
  +	 *  to get access to RuntimeServices
  +	 */ 
  +	 public void init( RuntimeServices rs )
  +	 {
  +	 	return;
  +	 }
   
       /**
        *  This is the key method needed to implement a logging interface
  
  
  
  1.2       +12 -1     jakarta-velocity/examples/logger_example/LoggerExample.java
  
  Index: LoggerExample.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/examples/logger_example/LoggerExample.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LoggerExample.java	2001/03/19 23:01:37	1.1
  +++ LoggerExample.java	2001/09/09 07:26:24	1.2
  @@ -54,7 +54,9 @@
   
   import org.apache.velocity.app.Velocity;
   import org.apache.velocity.runtime.log.LogSystem;
  +import org.apache.velocity.runtime.RuntimeServices;
   
  +
   /**
    *  This is a toy demonstration of how Velocity
    *  can use an externally configured logger.  In 
  @@ -64,7 +66,7 @@
    *  through it.
    *
    * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
  - * @version $Id: LoggerExample.java,v 1.1 2001/03/19 23:01:37 geirm Exp $
  + * @version $Id: LoggerExample.java,v 1.2 2001/09/09 07:26:24 geirm Exp $
    */
   public class LoggerExample implements LogSystem
   {
  @@ -92,6 +94,15 @@
           }
       }
   
  +	/**
  +	 *  Required init() method for LogSystem
  +	 *  to get access to RuntimeServices
  +	 */ 
  +	 public void init( RuntimeServices rs )
  +	 {
  +	 	return;
  +	 }
  +	 
       /**
        *  This is the key method needed to implement a logging interface
        *  for Velocity.
  
  
  

Mime
View raw message