/** * Creates {@link Madvoc Madvoc web application} if not already created. * Override it to set custom {@link MadvocConfig Madvoc configurator} or other core settings. */ protected Madvoc createMadvoc(FilterConfig filterConfig) { Madvoc madvoc = new Madvoc(); madvoc.configure(filterConfig); return madvoc; }
/** * Creates new {@link Madvoc} @{link WebApplication} that is configured * by context init parameters. */ public void contextInitialized(ServletContextEvent servletContextEvent) { ServletContext servletContext = servletContextEvent.getServletContext(); madvoc = new Madvoc(); madvoc.configure(servletContext); madvoc.startNewWebApplication(servletContext); }