You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ge...@apache.org on 2002/04/21 20:39:02 UTC
cvs commit: jakarta-velocity/src/java/org/apache/velocity/util/introspection Introspector.java
geirm 02/04/21 11:39:02
Modified: src/java/org/apache/velocity/util/introspection
Introspector.java
Log:
Supports getting a RuntimeLogger rather than the whole kit and kaboodle
Revision Changes Path
1.21 +7 -6 jakarta-velocity/src/java/org/apache/velocity/util/introspection/Introspector.java
Index: Introspector.java
===================================================================
RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/util/introspection/Introspector.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- Introspector.java 5 Dec 2001 23:44:56 -0000 1.20
+++ Introspector.java 21 Apr 2002 18:39:01 -0000 1.21
@@ -62,6 +62,7 @@
import java.lang.reflect.Method;
import org.apache.velocity.runtime.RuntimeServices;
+import org.apache.velocity.runtime.RuntimeLogger;
/**
* This basic function of this class is to return a Method
@@ -89,7 +90,7 @@
* @author <a href="mailto:bob@werken.com">Bob McWhirter</a>
* @author <a href="mailto:szegedia@freemail.hu">Attila Szegedi</a>
* @author <a href="mailto:paulo.gaspar@krankikom.de">Paulo Gaspar</a>
- * @version $Id: Introspector.java,v 1.20 2001/12/05 23:44:56 jvanzyl Exp $
+ * @version $Id: Introspector.java,v 1.21 2002/04/21 18:39:01 geirm Exp $
*/
public class Introspector extends IntrospectorBase
{
@@ -104,14 +105,14 @@
/**
* our engine runtime services
*/
- private RuntimeServices rsvc = null;
+ private RuntimeLogger rlog = null;
/**
* Recieves our RuntimeServices object
*/
- public Introspector( RuntimeServices r )
+ public Introspector(RuntimeLogger logger)
{
- this.rsvc = r;
+ this.rlog = logger;
}
/**
@@ -155,7 +156,7 @@
msg = msg + ") for class " + c;
- rsvc.error( msg );
+ rlog.error( msg );
}
return null;
@@ -168,6 +169,6 @@
protected void clearCache()
{
super.clearCache();
- rsvc.info( CACHEDUMP_MSG );
+ rlog.info( CACHEDUMP_MSG );
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>