>>
>> I needed to add a new way of extracting properties. I wrote a
>> DynamicBeanExecutor and then chained it into ASTIdentifier. I don't know
>> enough about the parser to know if we could make a runtime (startup)
>> directive that established a pipeline of AbstractExecutors or not?
>> Any ideas?

>That's interesting.  What does it need to do differently?


In this case its very simple. The app server has its own notion of
DynamicBeans and caches its own info about application server level
objects. To expose these in the VelocityContext I needed a call that would
invoke DynamicBeans.getPropertyValue(Object, String prop) which is a static
method on the DynamicBeans call, which maintains the cache of class info.
This deals with all the objects in my runtime system so I thought to use it
rather than attempt to modify the introspector or something else.

-Ben

Reply via email to