S
Stefan Siegl
Hello,
For my master thesis I have to create a customer relationship management
system (CRM). The final program should be a J2EE component. The
interesting part of this system is that the user can specify the data
schema (model) of the CRM system at runtime. To define this model I
created a metamodel. In order to allow an easy access to the model, I
will generate java source classes according to the model (that is
defined as instances of the meta classes). One problem is that the user
is allowed to change the model at runtime, meaning that the source code
files have to be recreated and compiled again.
So much for the introduction . After creating the source files I need
to compile them at runtime, is there a possibility to do so?
As I said before if the model changes, the new source code files need to
be compiled again. Is there a way to "unload" possible classes that were
created for the last model, so that there won't be a clash with the
newly created classes?
Any suggestions?
Best regards,
Stefan
For my master thesis I have to create a customer relationship management
system (CRM). The final program should be a J2EE component. The
interesting part of this system is that the user can specify the data
schema (model) of the CRM system at runtime. To define this model I
created a metamodel. In order to allow an easy access to the model, I
will generate java source classes according to the model (that is
defined as instances of the meta classes). One problem is that the user
is allowed to change the model at runtime, meaning that the source code
files have to be recreated and compiled again.
So much for the introduction . After creating the source files I need
to compile them at runtime, is there a possibility to do so?
As I said before if the model changes, the new source code files need to
be compiled again. Is there a way to "unload" possible classes that were
created for the last model, so that there won't be a clash with the
newly created classes?
Any suggestions?
Best regards,
Stefan