0 Replies Latest reply on May 9, 2006 2:08 PM by Tom Baeyens

    is javassist usefull for reflection only ?

    Tom Baeyens Master

      hi,

      does javassist give me any benefits when i only do runtime reflection over plain java reflection (no bytecode manipulation)

      i scanned some tutorials and this list but didn't find anything about this topic.

      I just need:

      * finding classes by name
      * finding constructors, fields and methods
      * creating new objects
      * invoking methods

      These features are covered by Java's reflection. Is it worth while switching to javassist or cglib for these in some situations ?

      i can imagine performance improvements. are there any other ?

      I read somewhere that Gavin made reflection pluggable in hibernate. Making it possible to switch cglib with javassist. That is what triggered me to explore this path.

      Any hints or pointers are appreciated.