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.
ScriptEngine and class compilation.
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 36
- Joined: Sat Apr 01, 2017 2:35 pm
Re: ScriptEngine and class compilation.
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 ... 
