Return-Path: Delivered-To: apmail-jakarta-velocity-dev-archive@jakarta.apache.org Received: (qmail 73813 invoked by uid 500); 9 Sep 2001 07:29:51 -0000 Mailing-List: contact velocity-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: velocity-dev@jakarta.apache.org Delivered-To: mailing list velocity-dev@jakarta.apache.org Received: (qmail 73804 invoked by uid 500); 9 Sep 2001 07:29:51 -0000 Delivered-To: apmail-jakarta-velocity-cvs@apache.org Date: 9 Sep 2001 07:26:24 -0000 Message-ID: <20010909072624.67985.qmail@icarus.apache.org> From: geirm@apache.org To: jakarta-velocity-cvs@apache.org Subject: cvs commit: jakarta-velocity/examples/logger_example LoggerExample.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 Geir Magnusson Jr. - * @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 Geir Magnusson Jr. - * @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.