Home Help Center

how to 'reload' properties when the program is running?

kempkemp Member
how to reload properties when the program is running? the program won't get the updated properties unless it is restarted. It is annoying to restart for each time the config file is changed.



  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    Properties are read by the Ice run only once on start-up or, in some cases, are read once when first needed (lazy initialization). Thereafter, property values are not looked at again. So, you cannot change properties on the fly and expect your program to react to them.

    Basically, properties are not meant to be used for dynamic information that can change at run time. Instead, they are meant to be used for configuration information that does not change while a program is running.


Sign In or Register to comment.