package com.telefonica.euro_iaas.placement.init;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
public class InitDbBootstrap implements ServletContextListener{
@Override
public void contextDestroyed(ServletContextEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void contextInitialized(ServletContextEvent event) {
WebApplicationContext ctx = WebApplicationContextUtils
.getWebApplicationContext(event.getServletContext());
InitDbCloudProviders init = ctx.getBean(InitDbCloudProviders.class);
//init.load();
init.loadTestBedBCN();
}
}