if (site.isDevelopment()) {
int seconds = 2;
log.info("The routes config file will be monitored every " + seconds + " seconds and reloaded if modified.");
monitor = new MicroConfigFileMonitor(routesConfig, this, seconds);
// todo: think about a future usage of the monitor field
} else {
load(site, (List<Map<String, Object>>) new Yaml().load(new FileInputStream(routesConfig)));
}
}