Home | History | Annotate | Download | only in inject

Lines Matching refs:Scopes

64       bind(BoundAsSingleton.class).in(Scopes.SINGLETON);
70 bind(ImplementedBySingleton.class).in(Scopes.SINGLETON);
71 bind(ProvidedBySingleton.class).in(Scopes.SINGLETON);
140 bind(AnnotatedSingleton.class).in(Scopes.NO_SCOPE);
267 Asserts.assertNotSerializable(Scopes.SINGLETON);
271 Asserts.assertNotSerializable(Scopes.NO_SCOPE);
299 bindScope(NotRuntimeRetainedScoped.class, Scopes.NO_SCOPE);
322 bindScope(Deprecated.class, Scopes.NO_SCOPE);
345 bindScope(CustomScoped.class, Scopes.NO_SCOPE);
350 bindScope(CustomScoped.class, Scopes.SINGLETON);
360 "1) Scope Scopes.NO_SCOPE is already bound to " + CustomScoped.class.getName()
363 "Cannot bind Scopes.SINGLETON.",
372 bindScope(CustomScoped.class, Scopes.SINGLETON);
373 bindScope(CustomScoped.class, Scopes.SINGLETON);
385 bindScope(CustomScoped.class, Scopes.NO_SCOPE);
442 return Scopes.SINGLETON.scope(key, unscoped);
559 bind(c).toProvider(Providers.of("c")).in(Scopes.SINGLETON);
580 assertFalse(Scopes.isSingleton(map.get(a))); // linked bindings are not followed by modules
581 assertFalse(Scopes.isSingleton(map.get(b)));
582 assertTrue(Scopes.isSingleton(map.get(c)));
583 assertTrue(Scopes.isSingleton(map.get(d)));
584 assertTrue(Scopes.isSingleton(map.get(e)));
585 assertTrue(Scopes.isSingleton(map.get(f)));
586 assertTrue(Scopes.isSingleton(map.get(g)));
587 assertFalse(Scopes.isSingleton(map.get(h))); // annotated classes are not followed by modules
588 assertTrue(Scopes.isSingleton(map.get(i)));
591 assertTrue(Scopes.isSingleton(injector.getBinding(a)));
592 assertTrue(Scopes.isSingleton(injector.getBinding(b)));
593 assertTrue(Scopes.isSingleton(injector.getBinding(c)));
594 assertTrue(Scopes.isSingleton(injector.getBinding(d)));
595 assertTrue(Scopes.isSingleton(injector.getBinding(e)));
596 assertTrue(Scopes.isSingleton(injector.getBinding(f)));
597 assertTrue(Scopes.isSingleton(injector.getBinding(g)));
598 assertTrue(Scopes.isSingleton(injector.getBinding(h)));
599 assertTrue(Scopes.isSingleton(injector.getBinding(i)));
614 bind(c).toProvider(Providers.of("c")).in(Scopes.NO_SCOPE);
616 bindScope(CustomScoped.class, Scopes.NO_SCOPE);
633 assertFalse(Scopes.isSingleton(map.get(a)));
634 assertFalse(Scopes.isSingleton(map.get(b)));
635 assertFalse(Scopes.isSingleton(map.get(c)));
636 assertFalse(Scopes.isSingleton(map.get(d)));
637 assertFalse(Scopes.isSingleton(map.get(e)));
638 assertFalse(Scopes.isSingleton(map.get(f)));
641 assertFalse(Scopes.isSingleton(injector.getBinding(a)));
642 assertFalse(Scopes.isSingleton(injector.getBinding(b)));
643 assertFalse(Scopes.isSingleton(injector.getBinding(c)));
644 assertFalse(Scopes.isSingleton(injector.getBinding(d)));
645 assertFalse(Scopes.isSingleton(injector.getBinding(e)));
646 assertFalse(Scopes.isSingleton(injector.getBinding(f)));
714 bind(c).toProvider(Providers.of("c")).in(Scopes.NO_SCOPE);
756 return Scopes.isScoped(binding, CUSTOM_SCOPE, CustomScoped.class);
861 bind(S.class).toProvider(provider).in(Scopes.SINGLETON);
868 bind(S.class).toProvider(provider).in(Scopes.SINGLETON);
961 assertTrue(!Scopes.isCircularProxy(g) && !Scopes.isCircularProxy(h));
964 assertFalse(Scopes.isCircularProxy(g.h) && Scopes.isCircularProxy(h.g));