Consider the following class
class A{ public void init(){ //do this first; } public void atEnd(){ //do this after init of base cl
Another thought would be to weave in an aspect. Add before and after advice to a pointcut.