Package org.springframework.web.context.request

Examples of org.springframework.web.context.request.RequestScope


    }

    protected final static ApplicationContext createContext(String configLocation, ApplicationContext parent) {
        XmlApplicationContext factory = new XmlApplicationContext(new FileSystemResource(new File(srcdir,
                                                                                                  configLocation)), parent);
        factory.getBeanFactory().registerScope("request", new RequestScope());
        return factory;
    }
View Full Code Here


    assertTrue(fake.isAuthorized());
  }

  private void setupRequestScope() {
    GenericApplicationContext genericContext = (GenericApplicationContext) context;
    genericContext.getBeanFactory().registerScope("request", new RequestScope());
    RequestContextHolder.setRequestAttributes(new ServletRequestAttributes(new MockHttpServletRequest()));
 
View Full Code Here

    assertTrue(fake.isAuthorized());
  }

  private void setupRequestScope() {
    GenericApplicationContext genericContext = (GenericApplicationContext) context;
    genericContext.getBeanFactory().registerScope("request", new RequestScope());
    RequestContextHolder.setRequestAttributes(new ServletRequestAttributes(new MockHttpServletRequest()));
 
View Full Code Here

TOP

Related Classes of org.springframework.web.context.request.RequestScope

Copyright © 2018 www.massapicom. 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.