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

    Creating wrapper objects

    Neeraj Bisht Newbie

      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..

      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?