I\'m wondering if there is a way to specify that a method gets called in advance of a class method. I know something like this should be posssible, since JUnit has before(),
Have a look at AspectJ. It will help you do what you are asking.