dcsimg
I want to create a Dynamic class from another class
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   abdul_qadeer
Posted On:   Monday, February 18, 2002 01:43 AM

I want to create a java class that will get parameters every time from some other class and will generate the getter and setter methods according to the parameters received from the other class
Any suggestion ?

Thank you in advance

Re: I want to create a Dynamic class from another class

Posted By:   Chandra_Patni  
Posted On:   Monday, February 18, 2002 06:31 PM

You can obviously write a code generator class for writing java classes from the input scheme you have. Once you have that, you can use sun.tools.javac.Main class to compile a class and ClassLoader.defineClass() load the class into VM using an appropriate ClassLoader.
About | Sitemap | Contact