2020-03-17 17:22:03 +01:00
|
|
|
package org.gcube.informationsystem.resourceregistry;
|
|
|
|
|
|
|
|
import javax.servlet.ServletContextEvent;
|
|
|
|
import javax.servlet.ServletContextListener;
|
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
2021-01-20 17:08:59 +01:00
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
*/
|
2020-03-17 17:22:03 +01:00
|
|
|
public class ResourceRegistryContextListener implements ServletContextListener {
|
|
|
|
|
|
|
|
private static Logger logger = LoggerFactory.getLogger(ResourceRegistryContextListener.class);
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void contextDestroyed(ServletContextEvent servletContextEvent) {
|
|
|
|
logger.info("Resource Registry is going to be stopped");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void contextInitialized(ServletContextEvent servletContextEvent) {
|
|
|
|
logger.info("Resource Registry is going to be started");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|