Searched refs:ServletScopes (Results 1 – 7 of 7) sorted by relevance
67 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 …]
48 ServletScopes.transferRequest(FALSE_CALLABLE); in testTransferHttp_outOfScope()56 ServletScopes.transferRequest(FALSE_CALLABLE); in testTransferNonHttp_outOfScope()64 ServletScopes.transferRequest(); in testTransferNonHttp_outOfScope_closeable()76 bindScope(RequestScoped.class, ServletScopes.REQUEST); in testTransferNonHttpRequest()91 return ServletScopes.transferRequest( in testTransferNonHttpRequest()102 Callable<Boolean> transfer = ServletScopes.scopeRequest(callable, seedMap).call(); in testTransferNonHttpRequest()115 bindScope(RequestScoped.class, ServletScopes.REQUEST); in testTransferNonHttpRequest_closeable()136 data.scoper = ServletScopes.transferRequest(); in testTransferNonHttpRequest_closeable()142 Data data = ServletScopes.scopeRequest(callable, seedMap).call(); in testTransferNonHttpRequest_closeable()162 executor.submit(ServletScopes.transferRequest(FALSE_CALLABLE)); in testTransferNonHttpRequest_concurrentUseBlocks()[all …]
69 ServletScopes.scopeRequest( in testNonHttpRequestScopedCallable()84 ServletScopes.scopeRequest( in testNonHttpRequestScopedCallable()111 ServletScopes.scopeRequest( in testWrongValueClasses()145 callable = ServletScopes.scopeRequest(injector.getInstance(Caller.class), map); in testNullReplacement()
217 ServletScopes.continueRequest( in doGet()
44 import com.google.inject.servlet.ServletScopes.NullObject;
18 import static com.google.inject.servlet.ServletScopes.REQUEST;19 import static com.google.inject.servlet.ServletScopes.SESSION;
43 public class ServletScopes { class45 private ServletScopes() {} in ServletScopes() method in ServletScopes321 return Scopes.isScoped(binding, ServletScopes.REQUEST, RequestScoped.class);