view app/Global.java @ 131:2b6e9496fb0c draft default tip

modified updateUserConsensusStatus
author one
date Fri, 26 Apr 2013 02:47:01 +0900
parents 7121a35a61b9
children
line wrap: on
line source

import init.InitialData;

import models.TPGraph;
import play.Application;
import play.GlobalSettings;
import play.Logger;

public class Global extends GlobalSettings {

	@Override
	public void onStart(Application app) {
		InitialData.init();
	}

	@Override
	public void onStop(Application app) {
		Logger.info("Application shutdown...");
		TPGraph tpGraph = TPGraph.getInstance();
		tpGraph.shutdownGraph();
		TPGraph.resetInstance();
	}
}