velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Vandahl <thomas.vand...@tewisoft.de>
Subject Re: Access public properties
Date Wed, 23 Feb 2011 16:42:19 GMT
On 18.02.2011 07:02, David Parks wrote:
> I know getters/setters are good practice, but for internal stuff that won't
> be extended I sometimes package things like compound return statements into
> a simple object with a few public properties for easy access. Seems
> reasonable that Velocity would check for a public property if the getter
> isn't there.

See 
http://velocity.apache.org/engine/releases/velocity-1.7/apidocs/org/apache/velocity/app/FieldMethodizer.html

Bye, Thomas.


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


Mime
View raw message