You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
Java
39 lines
1.1 KiB
Java
package org.gcube.spatial.data.sdi;
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
|
|
|
import org.gcube.smartgears.handlers.application.ApplicationLifecycleEvent.Start;
|
|
import org.gcube.smartgears.handlers.application.ApplicationLifecycleEvent.Stop;
|
|
import org.gcube.smartgears.handlers.application.ApplicationLifecycleHandler;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
@Slf4j
|
|
@XmlRootElement(name = "sdi-lifecycle")
|
|
public class SDIServiceLifecycleManager extends ApplicationLifecycleHandler{
|
|
|
|
|
|
|
|
public SDIServiceLifecycleManager() {
|
|
// System.out.println("SDI Lifecycle manager created ");
|
|
// System.out.println("persistence manager is "+persistence);
|
|
// System.out.println("template manager is "+templateManager);
|
|
// for(StackTraceElement el:Thread.currentThread().getStackTrace())
|
|
// System.out.println(""+el);
|
|
}
|
|
|
|
|
|
@Override
|
|
public void onStart(Start e) {
|
|
super.onStart(e);
|
|
|
|
}
|
|
|
|
@Override
|
|
public void onStop(Stop e) {
|
|
super.onStop(e);
|
|
// System.out.println("********************** SDI SHUTDOWN *****************************");
|
|
// persistence.shutdown();
|
|
}
|
|
|
|
}
|