public static ContextLoaderListener createSpringContextLoader ( final WebApplicationContext webApplicationContext ) { return new ContextLoaderListener ( ) { @ SuppressWarnings ( "unchecked" ) @ Override protected WebApplicationContext createWebApplicationContext ( ServletContext sc ) { return webApplicationContext ; } } ; }
Creates a spring context loader listener