I want to compile a class (for example Test1) in memory and directly store the byte code in a database as a BLOB.
Additionally I also want to compile a new class (Test2) which calls Test1 which is stored in the database. So I need to load this class from the database to compile Test2. Is that even possible, and if yes how could I do that?
I have read about the InMemoryCompiler and the DatabaseClassLoader, but I'm not sure if thats the right thing to work with.
https://github.com/trung/InMemoryJavaCompiler
How can I load java class from database?
If someone just know how to solve the first problem, that would also be great.
Thank you for your answers.