From: Colwell, D. <DCo...@sp...> - 2003-09-26 18:37:41
|
Ross is correct -- my bad. If you're feel like contributing, you're more than welcome to take a stab at extending the generator framework. Chat with Ross over design details. David -----Original Message----- From: Konrad [mailto:khg...@ya...]=20 Sent: Friday, September 26, 2003 12:54 PM To: arch4j Subject: RE: [Arch4j-users] [Java Class Generator] Loading existing class from .java file? Hi David. Do you mean the "Java Class Generator"? If so, can you supply a very simple example of how that would be done? According to Ross, though, modifying an existing .java source file is not possible... Thank you both for your replies! :) --- "Colwell, David" <DCo...@sp...> wrote: > If you simply need to load a Java source file, > modify it, and > write it out to file then the generator package > provides a nice > interface to creating code. If you are hoping to > modify bytecode at > runtime and reload a class then you'll need to start > looking at writing > your own classloader. >=20 > ~Dave >=20 > -----Original Message----- > From: Konrad [mailto:khg...@ya...]=20 > Sent: Friday, September 26, 2003 11:07 AM > To: arch4j > Subject: [Arch4j-users] [Java Class Generator] > Loading existing class > from .java file? >=20 > Hello. >=20 > I was wondering if it is possible to load an > existing > class definition (i.e. from a .java file), make some > additions/changes (i.e. add a "extends <class>" and > an > import statement), and write the updated file out to > a > different location? >=20 > Thank you. >=20 > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product > search > http://shopping.yahoo.com >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Arch4j-users mailing list > Arc...@li... > https://lists.sourceforge.net/lists/listinfo/arch4j-users __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Arch4j-users mailing list Arc...@li... https://lists.sourceforge.net/lists/listinfo/arch4j-users |