Reinicie a mim mesmo - posso reinicializar tudo do zero?
Eu tenho algo parecido com isto:
public static final String path;
static {
path = loadProperties("config.conf").getProperty("path");
}
public static void main(String... args) {
// ... do stuff (starting threads that reads the final path variable)
// someone want's to update the path (in the config.conf file)
restart(); // ???
}
Quero reinicializar a JVM chamando o inicializador estático novamente e, em seguida,main(...)
!
Isso pode ser feito?