0 Replies Latest reply on May 10, 2008 10:52 AM by donniedarko1985

    Creating wrapper objects

    donniedarko1985

      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?