view app/Global.java @ 109:2633ac31c233 draft

create updateRelationNode function
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Sun, 17 Mar 2013 22:39:58 +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();
	}
}