Searched refs:ServletScopes (Results 1 – 7 of 7) sorted by relevance
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
D | ServletScopesTest.java | 68 bind(c).toProvider(Providers.of("c")).in(ServletScopes.REQUEST); in testIsRequestScopedPositive() 92 assertFalse(ServletScopes.isRequestScoped(map.get(a))); in testIsRequestScopedPositive() 93 assertFalse(ServletScopes.isRequestScoped(map.get(b))); in testIsRequestScopedPositive() 94 assertTrue(ServletScopes.isRequestScoped(map.get(c))); in testIsRequestScopedPositive() 95 assertTrue(ServletScopes.isRequestScoped(map.get(d))); in testIsRequestScopedPositive() 97 assertFalse(ServletScopes.isRequestScoped(map.get(e))); in testIsRequestScopedPositive() 98 assertTrue(ServletScopes.isRequestScoped(map.get(f))); in testIsRequestScopedPositive() 99 assertTrue(ServletScopes.isRequestScoped(map.get(g))); in testIsRequestScopedPositive() 102 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(a))); in testIsRequestScopedPositive() 103 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(b))); in testIsRequestScopedPositive() [all …]
|
D | TransferRequestIntegrationTest.java | 50 ServletScopes.transferRequest(FALSE_CALLABLE); in testTransferHttp_outOfScope() 57 ServletScopes.transferRequest(FALSE_CALLABLE); in testTransferNonHttp_outOfScope() 65 bindScope(RequestScoped.class, ServletScopes.REQUEST); in testTransferNonHttpRequest() 76 return ServletScopes.transferRequest(new Callable<Boolean>() { in testTransferNonHttpRequest() 85 Callable<Boolean> transfer = ServletScopes.scopeRequest(callable, seedMap).call(); in testTransferNonHttpRequest() 97 Future<Boolean> future = executor.submit(ServletScopes.transferRequest(FALSE_CALLABLE)); in testTransferNonHttpRequest_concurrentUseBlocks() 110 assertTrue(ServletScopes.scopeRequest(callable, seedMap).call()); in testTransferNonHttpRequest_concurrentUseBlocks() 116 return ServletScopes.transferRequest(FALSE_CALLABLE).call(); in testTransferNonHttpRequest_concurrentUseSameThreadOk() 121 assertFalse(ServletScopes.scopeRequest(callable, seedMap).call()); in testTransferNonHttpRequest_concurrentUseSameThreadOk()
|
D | ScopeRequestIntegrationTest.java | 69 executor.submit(ServletScopes.scopeRequest(offRequestCallable, in testNonHttpRequestScopedCallable() 80 executor.submit(ServletScopes.scopeRequest(offRequestCallable, in testNonHttpRequestScopedCallable() 102 ServletScopes.scopeRequest(offRequestCallable, in testWrongValueClasses() 129 callable = ServletScopes.scopeRequest(injector.getInstance(Caller.class), map); in testNullReplacement()
|
D | ContinuingRequestIntegrationTest.java | 211 Callable<String> task = ServletScopes.continueRequest(callable, in doGet()
|
D | ServletTest.java | 44 import com.google.inject.servlet.ServletScopes.NullObject;
|
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
D | InternalServletModule.java | 18 import static com.google.inject.servlet.ServletScopes.REQUEST; 19 import static com.google.inject.servlet.ServletScopes.SESSION;
|
D | ServletScopes.java | 43 public class ServletScopes { class 45 private ServletScopes() {} in ServletScopes() method in ServletScopes 301 return Scopes.isScoped(binding, ServletScopes.REQUEST, RequestScoped.class);
|