Menu

using generated classses

2001-01-16
2001-01-24
  • Steven M. Kearns

    I would have some interesting uses for this
    package;  however, I would need to use the
    generated classes without having to save them
    to disk and then be loaded via the normal
    classloader.  Do you think this is possible?
    Perhaps via a custom classloader?

    -steve

     
    • Abe White

      Abe White - 2001-01-24

      Steve --

      Using a custom classloader is exactly the right idea.  Notice that the BCClass object has a method called getBytes() that returns a byte[] consisting of the class definition.  This method is there for the sole purpose of loading a newly generated/modified class into a custom class loader.

      Good luck.

      -- Abe

       

Log in to post a comment.

MongoDB Logo MongoDB