Package org.springframework.web.context

Examples of org.springframework.web.context.ContextLoaderListener.initWebApplicationContext()


    WebApplicationContext rootAppContext = createRootApplicationContext();
    if ( rootAppContext != null ) {
      servletContext.setAttribute( DYNAMIC_INITIALIZER, this );

      ContextLoaderListener listener = new ShutdownOnlyContextLoaderListener( rootAppContext );
      listener.initWebApplicationContext( servletContext );
      servletContext.removeAttribute( DYNAMIC_INITIALIZER );

      servletContext.addListener( listener );
    }
    else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.