Page 1 of 1

ScriptEngine and class compilation.

Posted: Mon Oct 04, 2010 11:04 am
by issle88
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.

Re: ScriptEngine and class compilation.

Posted: Mon Oct 04, 2010 4:10 pm
by issle88
It seems there is no way to use reflection with ScriptEngine compiled classes, based on some talk i had with bigboss and some google search i did. Really sad ... :(