How can I force refresh Java service to reload it in Sirius? [message #1822523] |
Mon, 09 March 2020 07:06  |
Eclipse User |
|
|
|
Hello,
I was trying to do a little trick in Sirius. I need to define some operations which is user-editable in my custom model, so I was saving a config file in my viewpoint specification project and load it to memory in the Java Service's constructor. Therefore I met a problem that when the config file changes, the Java Service class does not response to the change in time. I have to change the Service.java file and resave to make it effective. So is there anyway I can force reload the Service class (which means run the Service class's constructor method again) by a tool or some other methods? I don't want to read the config file in non-constructor methods because file I/Os are expensive and I hope to only do it once after every change.
Thanks very much for your help!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07798 seconds