ScriptEngine and class compilation.
Posted: Mon Oct 04, 2010 11:04 am
Ill describe it with an example: Handlers. Handlers get loaded from the following process: ScriptEngine, recrusivelly ( spelled wrong right ? ) goes through the handlers folders compiles the .java files. Then it runs masterHandler from the main method of the class and loads all the handlers as "objects" in the core relative classes ( fastmaps that hold script/IHandler couple ).
My question is, is there a possible way to reflect on the script classes ? For example, even if i add dependancy between datapack and gameserver and even if gameserver can "see" MasterHandler, it cant reflect it since it belongs in a different classpath than the server does. So big question is, where do all those "compiled" script- classes go when they get compiled with scriptengine ? And is there a way to incorporate them in the servers classpath in runtime ? Talking about the .class files not the .java ones.
My question is, is there a possible way to reflect on the script classes ? For example, even if i add dependancy between datapack and gameserver and even if gameserver can "see" MasterHandler, it cant reflect it since it belongs in a different classpath than the server does. So big question is, where do all those "compiled" script- classes go when they get compiled with scriptengine ? And is there a way to incorporate them in the servers classpath in runtime ? Talking about the .class files not the .java ones.