org.apache.commons.jexl.util.introspection

Class UberspectImpl

public class UberspectImpl extends Object implements Uberspect, UberspectLoggable

Implementation of Uberspect to provide the default introspective functionality of Velocity.

Since: 1.0

Version: $Id: UberspectImpl.java 398509 2006-05-01 03:34:35Z dion $

Nested Class Summary
classUberspectImpl.VelGetterImpl
classUberspectImpl.VelMethodImpl
An implementation of VelMethod.
classUberspectImpl.VelSetterImpl
Method Summary
IteratorgetIterator(Object obj, Info i)
VelMethodgetMethod(Object obj, String methodName, Object[] args, Info i)
VelPropertyGetgetPropertyGet(Object obj, String identifier, Info i)
VelPropertySetgetPropertySet(Object obj, String identifier, Object arg, Info i)
voidinit()
init - does nothing - we need to have setRuntimeLogger called before getting our introspector, as the default vel introspector depends upon it.
voidsetRuntimeLogger(Log runtimeLogger)
Sets the runtime logger - this must be called before anything else besides init() as to get the logger.

Method Detail

getIterator

public Iterator getIterator(Object obj, Info i)
{@inheritDoc }

getMethod

public VelMethod getMethod(Object obj, String methodName, Object[] args, Info i)
{@inheritDoc }

getPropertyGet

public VelPropertyGet getPropertyGet(Object obj, String identifier, Info i)
{@inheritDoc }

getPropertySet

public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i)
{@inheritDoc }

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.

Throws: Exception on any error.

setRuntimeLogger

public void setRuntimeLogger(Log runtimeLogger)
Sets the runtime logger - this must be called before anything else besides init() as to get the logger. Makes the pull model appealing...

Parameters: runtimeLogger service to use for logging.

Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.