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.java83 bindScope(RequestScoped.class, REQUEST); in configure()
84 bindScope(SessionScoped.class, SESSION); in configure()
/external/guice/core/test/com/google/inject/
DScopesTest.java279 bindScope(CustomScoped.class, scope); in testUnscopedProviderWorksOutsideOfRequestedScope()
299 bindScope(NotRuntimeRetainedScoped.class, Scopes.NO_SCOPE); in configure()
322 bindScope(Deprecated.class, Scopes.NO_SCOPE); in configure()
345 bindScope(CustomScoped.class, Scopes.NO_SCOPE); in configure()
350 bindScope(CustomScoped.class, Scopes.SINGLETON); in configure()
372 bindScope(CustomScoped.class, Scopes.SINGLETON); in testBindDuplicateScope()
373 bindScope(CustomScoped.class, Scopes.SINGLETON); in testBindDuplicateScope()
385 bindScope(CustomScoped.class, Scopes.NO_SCOPE); in testDuplicateScopeAnnotations()
524 bindScope(CustomScoped.class, providerGetScope); in testScopeThatGetsAnUnrelatedObject()
616 bindScope(CustomScoped.class, Scopes.NO_SCOPE);
[all …]
DParentInjectorTest.java121 bindScope(MyScope.class, Scopes.SINGLETON); in testScopesInherited()
223 bindScope(MyScope.class, Scopes.SINGLETON); in testScopeBoundInChildInjectorOnly()
244 bindScope(MyScope.class, Scopes.SINGLETON); in testErrorInParentButOkayInChild()
DErrorHandlingTest.java129 bindScope(BadScope.class, Scopes.SINGLETON); in configure()
DCircularDependencyTest.java529 bindScope(SimpleSingleton.class, new BasicSingleton()); in testCustomScopeCircularProxies()
DBinderTestSuite.java310 bindScope(TwoAtATimeScoped.class, new TwoAtATimeScope());
/external/guice/core/src/com/google/inject/
DAbstractModule.java85 protected void bindScope(Class<? extends Annotation> scopeAnnotation, in bindScope() method in AbstractModule
87 binder().bindScope(scopeAnnotation, scope); in bindScope()
DPrivateModule.java148 protected final void bindScope(Class<? extends Annotation> scopeAnnotation, Scope scope) { in bindScope() method in PrivateModule
149 binder().bindScope(scopeAnnotation, scope); in bindScope()
DBinder.java234 void bindScope(Class<? extends Annotation> annotationType, Scope scope); in bindScope() method
/external/guice/core/src/com/google/inject/spi/
DScopeBinding.java65 binder.withSource(getSource()).bindScope(annotationType, scope); in applyTo()
DElements.java234 public void bindScope(Class<? extends Annotation> annotationType, Scope scope) { in bindScope() method in Elements.RecordingBinder
/external/guice/core/test/com/google/inject/util/
DOverrideModuleTest.java251 bindScope(TestScopeAnnotation.class, scope); in testStandardScopeAnnotation()
289 bindScope(TestScopeAnnotation.class, scope); in testOverrideScopeAnnotation()
296 bindScope(TestScopeAnnotation.class, replacementScope); in testOverrideScopeAnnotation()
318 bindScope(TestScopeAnnotation.class, scope); in testFailsIfOverridenScopeInstanceHasBeenUsed()
331 bindScope(TestScopeAnnotation.class, new SingleUseScope()); in testFailsIfOverridenScopeInstanceHasBeenUsed()
/external/guice/core/src/com/google/inject/internal/
DInjectorShell.java294 binder.bindScope(Singleton.class, SINGLETON); in configure()
295 binder.bindScope(javax.inject.Singleton.class, SINGLETON); in configure()
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DTransferRequestIntegrationTest.java65 bindScope(RequestScoped.class, ServletScopes.REQUEST); in testTransferNonHttpRequest()
DServletScopesTest.java134 bindScope(CustomScoped.class, Scopes.NO_SCOPE); in testIsRequestScopedNegative()
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/
DCheckedProviderMethodsModuleTest.java71 bindScope(TestScope.Scoped.class, testScope); in configure()
DCheckedProviderTest.java120 bindScope(TestScope.Scoped.class, testScope); in setUp()
1481 bindScope(BadScope.class, new Scope() { in testProvisionExceptionOnDependenciesOfCxtor()
DThrowingProviderTest.java85 bindScope(TestScope.Scoped.class, testScope);
/external/guice/core/test/com/googlecode/guice/
DJsr330Test.java122 bindScope(TestScoped.class, scope); in testScopeAnnotation()
/external/guice/core/test/com/google/inject/spi/
DElementsTest.java723 bindScope(SampleAnnotation.class, Scopes.NO_SCOPE); in testBindScope()