2 Replies Latest reply on May 1, 2003 8:55 AM by popmace

    Javassist  sample

    popmace

      Hi,
      I would like to receive a sample pgm, that creates an object with an oject as attribute.

      Also after creating CtClass objects how to use that ?
      do i need to interospect every time to use it or can i use like other java objects.

      Thank You
      Pop

        • 1. Re: Javassist  sample
          chiba

          > I would like to receive a sample pgm, that
          > creates an object with an oject as attribute.

          Could you rephrase this question? Do you want
          to create an instance of a class newly defined
          with Javassist?

          - Chiba

          • 2. Re: Javassist  sample
            popmace

            Hi,
            I want to creat a class Employee with a class Address as one of its attribute
            with the following spec.
            ..........................
            Employee
            :name
            :Address
            :street
            :phone
            ............................
            Also how to instantiate and use these object. Using reflection is the only way to work with these classes.
            Thank you
            pop