org.xwiki.velocity.introspection
Interface ChainableUberspector

All Superinterfaces:
org.apache.velocity.util.introspection.Uberspect
All Known Implementing Classes:
AbstractChainableUberspector, ChainingUberspector, DeprecatedCheckUberspector

public interface ChainableUberspector
extends org.apache.velocity.util.introspection.Uberspect

Interface that marks uberspectors as chainable, meaning that multiple uberspectors can be combined in a chain (using the Decorator pattern).

Since:
1.5M1
Version:
$Id: deb8d3b6b90dc92bee5a28285c52132e38d33723 $

Method Summary
 void wrap(org.apache.velocity.util.introspection.Uberspect inner)
          Since uberspectors are dynamically enabled using a configuration string, we cannot simply call the constructors to pass the inner uberspector.
 
Methods inherited from interface org.apache.velocity.util.introspection.Uberspect
getIterator, getMethod, getPropertyGet, getPropertySet, init
 

Method Detail

wrap

void wrap(org.apache.velocity.util.introspection.Uberspect inner)
Since uberspectors are dynamically enabled using a configuration string, we cannot simply call the constructors to pass the inner uberspector. We can either instantiate uberspectors using reflection and passing the wrapped object to the constructor, or explicitely "wrap" the inner uberspector. The second method has several advantages, so it was chosen here:

Parameters:
inner - The decorated uberspector.


Copyright © 2004-2011 XWiki. All Rights Reserved.