Home
last modified time | relevance | path

Searched refs:servletContext (Results 1 – 11 of 11) sorted by relevance

/external/guice/extensions/servlet/src/com/google/inject/servlet/
DGuiceServletContextListener.java41 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()
DManagedFilterPipeline.java51 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()
DGuiceFilter.java74 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()
DFilterDefinition.java93 public void init(final ServletContext servletContext, Injector injector, in init() argument
118 return servletContext; in init()
DManagedServletPipeline.java78 public void init(ServletContext servletContext, Injector injector) throws ServletException { in init() argument
82 servletDefinition.init(servletContext, injector, initializedSoFar); in init()
DServletDefinition.java103 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/
DInjectedFilterPipelineTest.java81 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()
DFilterDefinitionTest.java63 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()
DServletDefinitionTest.java78 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()
DFilterPipelineTest.java65 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()
DContextPathTest.java57 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()