package io.highway.to.urhell.service.impl;

import io.highway.to.urhell.CoreEngine;
import io.highway.to.urhell.domain.FrameworkEnum;

import java.util.Map;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.ServletRegistration;
import javax.servlet.annotation.WebListener;

@WebListener
public class H2hellServlet3 implements ServletContextListener {
	
    @Override
    public void contextInitialized(final ServletContextEvent sce) {
        ServletContext servletContext = sce.getServletContext();
        Map<String, ? extends ServletRegistration> map = servletContext.getServletRegistrations();
        CoreEngine.getInstance().getFramework(FrameworkEnum.SERVLET_3).receiveData(map);
    }

    @Override
    public void contextDestroyed(final ServletContextEvent sce) {
        //?!
    }

}

package io.highway.to.urhell.service.impl;

import io.highway.to.urhell.CoreEngine;
import io.highway.to.urhell.domain.FrameworkEnum;

import java.util.Map;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.ServletRegistration;
import javax.servlet.annotation.WebListener;

@WebListener
public class Servlet3Service implements ServletContextListener {
	
    @Override
    public void contextInitialized(final ServletContextEvent sce) {
        ServletContext servletContext = sce.getServletContext();
        Map<String, ? extends ServletRegistration> map = servletContext.getServletRegistrations();
        CoreEngine.getInstance().getFramework(FrameworkEnum.SERVLET_3).receiveData(map);
    }

    @Override
    public void contextDestroyed(final ServletContextEvent sce) {
        //?!
    }

}

fix typo in servlet3Service class name