Home
last modified time | relevance | path

Searched refs:bindScope (Results 1 – 20 of 20) sorted by relevance

/external/guice/extensions/servlet/src/com/google/inject/servlet/
DInternalServletModule.java84 bindScope(RequestScoped.class, REQUEST); in configure()
85 bindScope(SessionScoped.class, SESSION); in configure()
/external/guice/core/test/com/google/inject/
DScopesTest.java303 bindScope(CustomScoped.class, scope); in testUnscopedProviderWorksOutsideOfRequestedScope()
326 bindScope(NotRuntimeRetainedScoped.class, Scopes.NO_SCOPE); in configure()
355 bindScope(Deprecated.class, Scopes.NO_SCOPE); in configure()
383 bindScope(CustomScoped.class, Scopes.NO_SCOPE); in configure()
390 bindScope(CustomScoped.class, Scopes.SINGLETON); in configure()
420 bindScope(CustomScoped.class, Scopes.SINGLETON); in testBindDuplicateScope()
421 bindScope(CustomScoped.class, Scopes.SINGLETON); in testBindDuplicateScope()
436 bindScope(CustomScoped.class, Scopes.NO_SCOPE); in testDuplicateScopeAnnotations()
592 bindScope(CustomScoped.class, providerGetScope); in testScopeThatGetsAnUnrelatedObject()
695 bindScope(CustomScoped.class, Scopes.NO_SCOPE);
[all …]
DParentInjectorTest.java132 bindScope(MyScope.class, Scopes.SINGLETON); in testScopesInherited()
252 bindScope(MyScope.class, Scopes.SINGLETON); in testScopeBoundInChildInjectorOnly()
277 bindScope(MyScope.class, Scopes.SINGLETON); in testErrorInParentButOkayInChild()
DErrorHandlingTest.java135 bindScope(BadScope.class, Scopes.SINGLETON); in configure()
DCircularDependencyTest.java659 bindScope(SimpleSingleton.class, new BasicSingleton()); in testCustomScopeCircularProxies()
DBinderTestSuite.java361 bindScope(TwoAtATimeScoped.class, new TwoAtATimeScope());
/external/guice/core/src/com/google/inject/
DAbstractModule.java77 protected void bindScope(Class<? extends Annotation> scopeAnnotation, Scope scope) { in bindScope() method in AbstractModule
78 binder().bindScope(scopeAnnotation, scope); in bindScope()
DPrivateModule.java145 protected final void bindScope(Class<? extends Annotation> scopeAnnotation, Scope scope) { in bindScope() method in PrivateModule
146 binder().bindScope(scopeAnnotation, scope); in bindScope()
DBinder.java210 void bindScope(Class<? extends Annotation> annotationType, Scope scope); in bindScope() method
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DTransferRequestIntegrationTest.java76 bindScope(RequestScoped.class, ServletScopes.REQUEST); in testTransferNonHttpRequest()
115 bindScope(RequestScoped.class, ServletScopes.REQUEST); in testTransferNonHttpRequest_closeable()
DServletScopesTest.java135 bindScope(CustomScoped.class, Scopes.NO_SCOPE); in testIsRequestScopedNegative()
/external/guice/core/test/com/google/inject/util/
DOverrideModuleTest.java284 bindScope(TestScopeAnnotation.class, scope); in testStandardScopeAnnotation()
330 bindScope(TestScopeAnnotation.class, scope); in testOverrideScopeAnnotation()
339 bindScope(TestScopeAnnotation.class, replacementScope); in testOverrideScopeAnnotation()
366 bindScope(TestScopeAnnotation.class, scope); in testFailsIfOverridenScopeInstanceHasBeenUsed()
383 bindScope(TestScopeAnnotation.class, new SingleUseScope()); in testFailsIfOverridenScopeInstanceHasBeenUsed()
/external/guice/core/src/com/google/inject/spi/
DScopeBinding.java68 binder.withSource(getSource()).bindScope(annotationType, scope); in applyTo()
DElements.java232 public void bindScope(Class<? extends Annotation> annotationType, Scope scope) { in bindScope() method in Elements.RecordingBinder
/external/guice/core/src/com/google/inject/internal/
DInjectorShell.java312 binder.bindScope(Singleton.class, SINGLETON); in configure()
313 binder.bindScope(javax.inject.Singleton.class, SINGLETON); in configure()
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/
DCheckedProviderMethodsModuleTest.java67 bindScope(TestScope.Scoped.class, testScope); in configure()
DCheckedProviderTest.java123 bindScope(TestScope.Scoped.class, testScope); in setUp()
1626 bindScope( in testProvisionExceptionOnDependenciesOfCxtor()
DThrowingProviderTest.java91 bindScope(TestScope.Scoped.class, testScope);
/external/guice/core/test/com/googlecode/guice/
DJsr330Test.java132 bindScope(TestScoped.class, scope); in testScopeAnnotation()
/external/guice/core/test/com/google/inject/spi/
DElementsTest.java765 bindScope(SampleAnnotation.class, Scopes.NO_SCOPE); in testBindScope()