org.apache.velocity.util.introspection

Class UberspectImpl

public class UberspectImpl extends Object implements Uberspect, UberspectLoggable

Implementation of Uberspect to provide the default introspective functionality of Velocity

Version: $Id: UberspectImpl.java,v 1.2.4.1 2004/03/03 23:23:08 geirm Exp $

Author: Geir Magnusson Jr.

Nested Class Summary
classUberspectImpl.VelGetterImpl
classUberspectImpl.VelMethodImpl
Implementation of VelMethod
classUberspectImpl.VelSetterImpl
Field Summary
static Introspectorintrospector
the default Velocity introspector
RuntimeLoggerrlog
Our runtime logger.
Method Summary
IteratorgetIterator(Object obj, Info i)
To support iteratives - #foreach()
VelMethodgetMethod(Object obj, String methodName, Object[] args, Info i)
Method
VelPropertyGetgetPropertyGet(Object obj, String identifier, Info i)
Property getter
VelPropertySetgetPropertySet(Object obj, String identifier, Object arg, Info i)
Property setter
voidinit()
init - does nothing - we need to have setRuntimeLogger called before getting our introspector, as the default vel introspector depends upon it.
voidsetRuntimeLogger(RuntimeLogger runtimeLogger)
Sets the runtime logger - this must be called before anything else besides init() as to get the logger.

Field Detail

introspector

private static Introspector introspector
the default Velocity introspector

rlog

private RuntimeLogger rlog
Our runtime logger.

Method Detail

getIterator

public Iterator getIterator(Object obj, Info i)
To support iteratives - #foreach()

getMethod

public VelMethod getMethod(Object obj, String methodName, Object[] args, Info i)
Method

getPropertyGet

public VelPropertyGet getPropertyGet(Object obj, String identifier, Info i)
Property getter

getPropertySet

public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i)
Property setter

init

public void init()
init - does nothing - we need to have setRuntimeLogger called before getting our introspector, as the default vel introspector depends upon it.

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...
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.