Java tutorial
/** * Copyright 2014 Telefonica Investigacin y Desarrollo, S.A.U <br> * This file is part of FI-WARE project. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. * </p> * <p> * You may obtain a copy of the License at:<br> * <br> * http://www.apache.org/licenses/LICENSE-2.0 * </p> * <p> * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * </p> * <p> * See the License for the specific language governing permissions and limitations under the License. * </p> * <p> * For those usages not covered by the Apache version 2.0 License please contact with opensource@tid.es * </p> */ package com.telefonica.euro_iaas.sdc.bootstrap; import java.util.Arrays; import java.util.List; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; import com.telefonica.fiware.commons.dao.EntityNotFoundException; import com.telefonica.euro_iaas.sdc.dao.NodeCommandDao; import com.telefonica.euro_iaas.sdc.dao.OSDao; import com.telefonica.euro_iaas.sdc.dao.ProductDao; import com.telefonica.euro_iaas.sdc.dao.ProductReleaseDao; import com.telefonica.euro_iaas.sdc.model.Attribute; import com.telefonica.euro_iaas.sdc.model.Metadata; import com.telefonica.euro_iaas.sdc.model.NodeCommand; import com.telefonica.euro_iaas.sdc.model.OS; import com.telefonica.euro_iaas.sdc.model.Product; import com.telefonica.euro_iaas.sdc.model.ProductRelease; /** * Populates data base with synthetic data to emulate the preconditions of SO management, Image deployable management * and customer management. * * @author Sergio Arroyo * @version $Id: $ */ // TODO delete this class when the preconditions are done. public class InitDbBootstrap implements ServletContextListener { /** {@inheritDoc} */ public void contextInitialized(ServletContextEvent event) { } /** {@inheritDoc} */ public void contextDestroyed(ServletContextEvent event) { } }