[jboss-user] [Javassist user questions] - Creating wrapper objects

DonnieDarko1985 do-not-reply at jboss.com
Sat May 10 10:52:09 EDT 2008


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? 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149922#4149922

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149922



More information about the jboss-user mailing list