Intercepting calls to objects
The more I research this the more I think that I'm making this up, but I seem to remember some way in Java to "intercept" calls to an object. For instance, if someone called setFoo(int) on an object, I could have some method that would catch every call to the object. This method would receive the name of the method being called, etc. (i.e., when "setFoo()" is called, this special method gets passed in a string called "setFoo". I could do some special processing, then dispatch the actual method call to "setFoo().")
I know you can do this sort of thing by creating an architecture that would support listeners on "foo", etc., but what I'm thinking of is more automatic, based on Java reflection functionality.
Does this exist in Java, or is this just a fantasy of mine?
Thanks.

