Examples of MicroConfigFileMonitor


Examples of ca.simplegames.micro.utils.MicroConfigFileMonitor

    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)));
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.