/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
D | GuiceServletContextListener.java | 41 final ServletContext servletContext = servletContextEvent.getServletContext(); in contextInitialized() local 45 GuiceFilter.servletContext = new WeakReference<ServletContext>(servletContext); in contextInitialized() 49 .set(servletContext); in contextInitialized() 50 servletContext.setAttribute(INJECTOR_NAME, injector); in contextInitialized() 54 ServletContext servletContext = servletContextEvent.getServletContext(); in contextDestroyed() local 55 servletContext.removeAttribute(INJECTOR_NAME); in contextDestroyed()
|
D | ManagedFilterPipeline.java | 51 private final Provider<ServletContext> servletContext; field in ManagedFilterPipeline 63 Provider<ServletContext> servletContext) { in ManagedFilterPipeline() argument 66 this.servletContext = servletContext; in ManagedFilterPipeline() 88 public synchronized void initPipeline(ServletContext servletContext) in initPipeline() argument 99 filterDefinition.init(servletContext, injector, initializedSoFar); in initPipeline() 103 servletPipeline.init(servletContext, injector); in initPipeline() 115 initPipeline(servletContext.get()); in dispatch()
|
D | GuiceFilter.java | 74 static volatile WeakReference<ServletContext> servletContext = field in GuiceFilter 159 return servletContext.get(); in getServletContext() 211 final ServletContext servletContext = filterConfig.getServletContext(); in init() local 214 GuiceFilter.servletContext = new WeakReference<ServletContext>(servletContext); in init() 220 filterPipeline.initPipeline(servletContext); in init() 232 servletContext.clear(); in destroy()
|
D | FilterDefinition.java | 93 public void init(final ServletContext servletContext, Injector injector, in init() argument 118 return servletContext; in init()
|
D | ManagedServletPipeline.java | 78 public void init(ServletContext servletContext, Injector injector) throws ServletException { in init() argument 82 servletDefinition.init(servletContext, injector, initializedSoFar); in init()
|
D | ServletDefinition.java | 103 public void init(final ServletContext servletContext, Injector injector, in init() argument 127 return servletContext; in init()
|
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
D | InjectedFilterPipelineTest.java | 81 ServletContext servletContext = createMock(ServletContext.class); in testDispatchThruInjectedGuiceFilter() local 88 .andReturn(servletContext) in testDispatchThruInjectedGuiceFilter() 103 replay(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruInjectedGuiceFilter() 112 verify(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruInjectedGuiceFilter() 120 reset(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruInjectedGuiceFilter() 128 .andReturn(servletContext) in testDispatchThruInjectedGuiceFilter() 142 replay(filterConfig, servletContext, request, proceedingFilterChain2, proceedingFilterChain); in testDispatchThruInjectedGuiceFilter() 151 verify(filterConfig, servletContext, request, proceedingFilterChain, proceedingFilterChain2); in testDispatchThruInjectedGuiceFilter()
|
D | FilterDefinitionTest.java | 63 ServletContext servletContext = createMock(ServletContext.class); in testFilterInitAndConfig() local 65 expect(servletContext.getServletContextName()).andReturn(contextName); in testFilterInitAndConfig() 67 replay(servletContext); in testFilterInitAndConfig() 72 filterDef.init(servletContext, injector, Sets.<Filter>newIdentityHashSet()); in testFilterInitAndConfig() 88 verify(binding, injector, servletContext); in testFilterInitAndConfig() 212 ServletContext servletContext = createMock(ServletContext.class); in testGetFilterIfMatching() local 235 filterDef.init(servletContext, injector, Sets.<Filter>newIdentityHashSet()); in testGetFilterIfMatching() 247 ServletContext servletContext = createMock(ServletContext.class); in testGetFilterIfMatchingNotMatching() local 270 filterDef.init(servletContext, injector, Sets.<Filter>newIdentityHashSet()); in testGetFilterIfMatchingNotMatching()
|
D | ServletDefinitionTest.java | 78 ServletContext servletContext = createMock(ServletContext.class); in testServletInitAndConfig() local 80 expect(servletContext.getServletContextName()) in testServletInitAndConfig() 83 replay(servletContext); in testServletInitAndConfig() 85 servletDefinition.init(servletContext, injector, Sets.<HttpServlet>newIdentityHashSet()); in testServletInitAndConfig() 100 verify(injector, binding, servletContext); in testServletInitAndConfig()
|
D | FilterPipelineTest.java | 65 ServletContext servletContext = createMock(ServletContext.class); in testDispatchThruGuiceFilter() local 72 .andReturn(servletContext) in testDispatchThruGuiceFilter() 87 replay(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruGuiceFilter() 96 verify(filterConfig, servletContext, request, proceedingFilterChain); in testDispatchThruGuiceFilter()
|
D | ContextPathTest.java | 57 private ServletContext servletContext; field in ContextPathTest 82 servletContext = globalControl.createMock(ServletContext.class); in setUp() 85 expect(servletContext.getAttribute(GuiceServletContextListener.INJECTOR_NAME)) in setUp() 87 expect(filterConfig.getServletContext()).andReturn(servletContext).anyTimes(); in setUp() 109 servletContext = null; in tearDown()
|