List of usage examples for org.springframework.web.context.support GroovyWebApplicationContext GroovyWebApplicationContext
GroovyWebApplicationContext
From source file:com.rockagen.gnext.main.BootStrap.java
@Override public void onStartup(ServletContext servletContext) throws ServletException { rootContext = new GroovyWebApplicationContext(); rootContext.setServletContext(servletContext); rootContext.setConfigLocation("classpath:applicationContext.groovy"); rootContext.refresh();/*from w w w . j a v a2 s . c o m*/ // Set init parameter setInitParameter(servletContext); // Add listener addListeners(servletContext); // Add Filter addFilter(servletContext); // Add Servlet addServlet(servletContext); }