You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Shinobu Kawai <sh...@gmail.com> on 2004/10/16 14:28:47 UTC

PublicFieldUberspect

Hi all,

For all of you lazy guys, I made an Uberspect that exposes public fields.
    http://wiki.apache.org/jakarta-velocity/PublicFieldUberspect
The test:
    http://sylow.no-ip.com/pub/apache/jakarta/velocity/tools/PublicFieldUberspectTest.java

Simple manual:
- Setting the Uberspect
-- via velocity.properties
  runtime.introspector.uberspect=org.apache.velocity.tools.generic.introspection.PublicFieldUberspect
-- via java.  (Singleton model)
  Velocity.setProperty("runtime.introspector.uberspect",
"org.apache.velocity.tools.generic.introspection.PublicFieldUberspect");
  Velocity.init();
-- via java.  (Separate instance model)
  VelocityEngine engine = new VelocityEngine();
  engine.setProperty("runtime.introspector.uberspect",
"org.apache.velocity.tools.generic.introspection.PublicFieldUberspect");
  engine.init();

Any comments welcome.

Best regards,
-- Shinobu Kawai

-- 
Shinobu Kawai <sh...@gmail.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org