@Override public void onStartup(ServletContext servletContext) throws ServletException { super.onStartup(servletContext); registerDispatcherServlet(servletContext); }
@Override public void onStartup(ServletContext servletContext) throws ServletException { super.onStartup(servletContext); registerDispatcherServlet(servletContext); }
@Test public void register() throws ServletException { initializer.onStartup(servletContext); assertTrue(eventListener instanceof ContextLoaderListener); ContextLoaderListener cll = (ContextLoaderListener) eventListener; cll.contextInitialized(new ServletContextEvent(servletContext)); WebApplicationContext applicationContext = WebApplicationContextUtils .getRequiredWebApplicationContext(servletContext); assertTrue(applicationContext.containsBean(BEAN_NAME)); assertTrue(applicationContext.getBean(BEAN_NAME) instanceof MyBean); }
@Override public void onStartup(ServletContext servletContext) throws ServletException { super.onStartup(servletContext); this.registerMessageDispatcherServlet(servletContext); }
@Override public void onStartup(ServletContext servletContext) throws ServletException { super.onStartup(servletContext); registerDispatcherServlet(servletContext); }
@Override public void onStartup(ServletContext servletContext) throws ServletException { super.onStartup(servletContext); this.registerMessageDispatcherServlet(servletContext); }
/** * {@link #registerJohnsonContextListener(ServletContext) Registers a} {@link JohnsonContextListener} and then * delegates to the superclass's {@code onStartup(ServletContext)} implementation. * * @param servletContext the {@code ServletContext} to initialize * @throws ServletException potentially thrown by the superclass {@code onStartup(ServletContext)} implementation */ @Override public void onStartup(ServletContext servletContext) throws ServletException { registerJohnsonContextListener(servletContext); super.onStartup(servletContext); }
@Override public void onStartup(ServletContext servletContext) throws ServletException { super.onStartup(servletContext); this.registerMessageDispatcherServlet(servletContext); }