List of usage examples for org.springframework.web.context.support AnnotationConfigWebApplicationContext setConfigLocation
public void setConfigLocation(String location)
From source file:com.biendltb.main_server.TripMapServer.java
private static WebApplicationContext getContext() { AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext(); context.setConfigLocation(CONFIG_LOCATION); context.getEnvironment().setDefaultProfiles(DEFAULT_PROFILE); return context; }
From source file:org.apache.nutch.webui.NutchUiServer.java
private static WebApplicationContext getContext() { AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext(); context.setConfigLocation(CONFIG_LOCATION); return context; }
From source file:com.art4ul.jcoonsample.server.ServerLauncher.java
public static WebApplicationContext getContext() { AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext(); context.setConfigLocation(CONFIG_LOCATION); return context; }
From source file:org.akhikhl.examples.gretty.hellogretty.AppInitializer.java
private AnnotationConfigWebApplicationContext getContext() { AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext(); context.setConfigLocation("org.akhikhl.examples.gretty.hellogretty"); return context; }
From source file:com.xy.inc.configuration.AppInitializer.java
private AnnotationConfigWebApplicationContext getContext() { AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext(); context.setConfigLocation("com.xy.inc.configuration"); return context; }
From source file:ca.n4dev.dev.worktime.config.SpringAppInitializer.java
private AnnotationConfigWebApplicationContext getContext() { AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext(); context.setConfigLocation(CONFIG_LOCATION); return context; }
From source file:$.SpringAppInitializer.java
private AnnotationConfigWebApplicationContext getContext() { AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext(); context.setConfigLocation(CONFIG_LOCATION); return context; }//from w w w. j av a 2s.c om
From source file:org.synchronoss.cloud.nio.multipart.example.utils.WebAppInitializer.java
@Override public void onStartup(ServletContext servletContext) throws ServletException { AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext(); context.setConfigLocation("org.synchronoss.cloud.nio.multipart.example.config"); context.setServletContext(servletContext); Dynamic dynamic = servletContext.addServlet("dispatcher", new DispatcherServlet(context)); dynamic.setAsyncSupported(true);// www . j av a2 s . co m dynamic.addMapping("/"); dynamic.setLoadOnStartup(1); }
From source file:ch.thp.proto.spring.time.web.config.ServletAppInitializer.java
private AnnotationConfigWebApplicationContext getContext() { AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext(); context.setConfigLocation("ch.thp.proto.spring.time.web.config"); return context; }
From source file:com.github.marsbits.restfbmessenger.sample.EchoWebApplicationInitializer.java
@Override public void onStartup(ServletContext servletContext) throws ServletException { AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext(); context.setConfigLocation(this.getClass().getPackage().getName()); servletContext.addListener(new ContextLoaderListener(context)); ServletRegistration.Dynamic dispatcher = servletContext.addServlet("DispatcherServlet", new DispatcherServlet(context)); dispatcher.setLoadOnStartup(1);/* ww w .ja v a2s. com*/ dispatcher.addMapping("/*"); }