Package org.picocontainer.gems.adapters

Examples of org.picocontainer.gems.adapters.ThreadLocalReference


  private final static String ALREADY_FILTERED_KEY = "nanocontainer_objectfactory_filtered";

  private ObjectReference objectReference;

  public void init(FilterConfig config) throws ServletException {
    objectReference = new ThreadLocalReference();
    ObjectFactory.setObjectFactory(new PicoObjectFactory(objectReference));
  }
View Full Code Here


    private Mock requestMock = mock(HttpServletRequest.class);
    private HttpServletRequest request = (HttpServletRequest) requestMock.proxy();
   
    public void setUp(){
        container = new DefaultPicoContainer();
        ObjectReference reference = new ThreadLocalReference();
        reference.set(request);
        factory = new PicoObjectFactory(reference);
    }
View Full Code Here

TOP

Related Classes of org.picocontainer.gems.adapters.ThreadLocalReference

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.