org.apache.velocity.util.introspection
Interface Uberspect

All Known Subinterfaces:
ChainableUberspector
All Known Implementing Classes:
AbstractChainableUberspector, LinkingUberspector, SecureUberspector, UberspectImpl

public interface Uberspect

'Federated' introspection/reflection interface to allow the introspection behavior in Velocity to be customized.

Version:
$Id: Uberspect.java 463298 2006-10-12 16:10:32Z henning $
Author:
Geir Magusson Jr.

Method Summary
 Iterator getIterator(Object obj, Info info)
          To support iteratives - #foreach()
 VelMethod getMethod(Object obj, String method, Object[] args, Info info)
          Returns a general method, corresponding to $foo.bar( $woogie )
 VelPropertyGet getPropertyGet(Object obj, String identifier, Info info)
          Property getter - returns VelPropertyGet appropos for #set($foo = $bar.woogie)
 VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info info)
          Property setter - returns VelPropertySet appropos for #set($foo.bar = "geir")
 void init()
          Initializer - will be called before use
 

Method Detail

init

void init()
          throws Exception
Initializer - will be called before use

Throws:
Exception

getIterator

Iterator getIterator(Object obj,
                     Info info)
                     throws Exception
To support iteratives - #foreach()

Parameters:
obj -
info -
Returns:
An Iterator.
Throws:
Exception

getMethod

VelMethod getMethod(Object obj,
                    String method,
                    Object[] args,
                    Info info)
                    throws Exception
Returns a general method, corresponding to $foo.bar( $woogie )

Parameters:
obj -
method -
args -
info -
Returns:
A Velocity Method.
Throws:
Exception

getPropertyGet

VelPropertyGet getPropertyGet(Object obj,
                              String identifier,
                              Info info)
                              throws Exception
Property getter - returns VelPropertyGet appropos for #set($foo = $bar.woogie)

Parameters:
obj -
identifier -
info -
Returns:
A Velocity Getter.
Throws:
Exception

getPropertySet

VelPropertySet getPropertySet(Object obj,
                              String identifier,
                              Object arg,
                              Info info)
                              throws Exception
Property setter - returns VelPropertySet appropos for #set($foo.bar = "geir")

Parameters:
obj -
identifier -
arg -
info -
Returns:
A Velocity Setter.
Throws:
Exception


Copyright © 2000-2008 The Apache Software Foundation. All Rights Reserved.