RE: Help needed to Intercept and overide getter and setter method calls
"Shankar Unni" <[email protected]>
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <040701c3a3d5$822fd440$0300a8c0@HQSHANKAR> |
John K White wrote:
> there's also the map access syntax:
>
> map = new java.util.HashMap();
> map{"key"} = "value";
>
> but that's not as simple as "map.key = value;".
Of course. And more importantly, it assumes that "map" is a Map.
The benefit of a generic getter and setter hook is that it can deal with any
object that has a concept of keys and values, however they are set.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/