hi,
as 100% of the forum posts are questions, it would be a good idea to look for a more self explaining name for your post. "question" is a bit too vague... :-)
to answer your question: yes, it's possible. but not with a finger snip. the approach would be aop (
aspect oriented programming, which was actually developed for such requirements. but that's too big to explain in one sentence (at least for me). have a look at the spring-framework, they give an excellent introduction, and see if this is of some use for you. aspectJ would be another alternative, but i consider spring to be easier to use.
oh, and yes - if all this is way too much, have a look at the proxy
pattern in general and dynamic proxies in special.
hope it helps you to get started,
jan