My problem is this.
I have a target object tarObj.
Now using javassist I want to create a wrapper object or metaobject for this such that the target class is renamed (to say origTarObj) and the new class contains a field of type origTarObj ...someting like this..
tarObj:
OrigTarObj origObject;
all methods n constructors are copied into this new class and simple delegated to origObject.
what is the best way to do this with javassist?