org.apache.velocity.util.introspection
Class UberspectImpl
java.lang.Object
org.apache.velocity.util.introspection.UberspectImpl
- Uberspect, UberspectLoggable
public class UberspectImpl
extends java.lang.Object
Implementation of Uberspect to provide the default introspective
functionality of Velocity
Version:
- Geir Magnusson Jr.
Iterator | getIterator(Object obj, Info i) - To support iteratives - #foreach()
|
VelMethod | getMethod(Object obj, String methodName, Object[] args, Info i) - Method
|
VelPropertyGet | getPropertyGet(Object obj, String identifier, Info i) - Property getter
|
VelPropertySet | getPropertySet(Object obj, String identifier, Object arg, Info i) - Property setter
|
void | init() - init - does nothing - we need to have setRuntimeLogger
called before getting our introspector, as the default
vel introspector depends upon it.
|
void | setRuntimeLogger(RuntimeLogger runtimeLogger) - Sets the runtime logger - this must be called before anything
else besides init() as to get the logger.
|
introspector
private static Introspector introspector
the default Velocity introspector
getIterator
public Iterator getIterator(Object obj,
Info i)
throws Exception
To support iteratives - #foreach()
- getIterator in interface Uberspect
init
public void init()
throws Exception
init - does nothing - we need to have setRuntimeLogger
called before getting our introspector, as the default
vel introspector depends upon it.
- init in interface Uberspect
setRuntimeLogger
public void setRuntimeLogger(RuntimeLogger runtimeLogger)
Sets the runtime logger - this must be called before anything
else besides init() as to get the logger. Makes the pull
model appealing...
- setRuntimeLogger in interface UberspectLoggable
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.