Return-Path: Delivered-To: apmail-jakarta-velocity-user-archive@jakarta.apache.org Received: (qmail 97265 invoked by uid 500); 6 Sep 2001 21:46:52 -0000 Mailing-List: contact velocity-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: velocity-user@jakarta.apache.org Delivered-To: mailing list velocity-user@jakarta.apache.org Received: (qmail 97256 invoked from network); 6 Sep 2001 21:46:52 -0000 User-Agent: Microsoft-Entourage/9.0.1.3108 Date: Thu, 06 Sep 2001 17:45:39 -0400 Subject: Re: IllegalAccessException ?? LogSystem changed in 1.2 From: "Geir Magnusson Jr." To: Message-ID: In-Reply-To: <1102.192.168.100.69.999746155.squirrel@znutar.cortexity.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On 9/5/01 11:15 PM, "Nick Bauman" wrote: > OK Geir, upgrading to 1.2-dev, I see the interface to LogSystem has > changed... > > [javac] /home/nick/projects/ttmor/src/com/cortexity/util/VelocityLoggerAdapt > er.java:27: com.cortexity.util.VelocityLoggerAdapter should be declared > abstract; it does not define init > (org.apache.velocity.runtime.RuntimeServices) in > com.cortexity.util.VelocityLoggerAdapter > [javac] public final class VelocityLoggerAdapter implements LogSystem { > [javac] ^ > [javac] > Note: /home/nick/projects/ttmor/src/com/cortexity/servlet/VTLDispatcher.java > uses or overrides a deprecated API. > [javac] Note: Recompile with -deprecation for details. > [javac] 1 error > > So I need to implement RuntimeServices interface in my LogSystem impl. and > make my logging interface consume that so that initializing Velocity > logging and my app's logging is done the same way? Sorry if this comes > across as Thick As A Whale Omlette (tm) as usual. Not sure about how you phrased it, but you simply must add an init method that takes a RuntimeServices argument. Your logger has no responsibilities re that, just that the interface has to have it for others that may want access to the runtime instance they are running in. Hope it isn't too much trouble. This is the obvious downside to using interfaces rather than base classes... geir