Reiniciarme: ¿puedo reiniciar todo desde cero?
Tengo algo como esto:
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(); // ???
}
Quiero reiniciar la JVM llamando al inicializador estático nuevamente, y luegomain(...)
!
Se puede hacer?