Home
last modified time | relevance | path

Searched refs:Scoping (Results 1 – 16 of 16) sorted by relevance

/external/guice/core/src/com/google/inject/internal/
DScoping.java38 public abstract class Scoping { class
44 public static final Scoping UNSCOPED = new Scoping() {
62 public static final Scoping SINGLETON_ANNOTATION = new Scoping() {
80 public static final Scoping SINGLETON_INSTANCE = new Scoping() {
98 public static final Scoping EAGER_SINGLETON = new Scoping() {
116 public static Scoping forAnnotation(final Class<? extends Annotation> scopingAnnotation) { in forAnnotation()
122 return new Scoping() { in forAnnotation()
141 public static Scoping forInstance(final Scope scope) {
146 return new Scoping() {
212 if(obj instanceof Scoping) {
[all …]
DBindingImpl.java35 private final Scoping scoping;
39 InternalFactory<? extends T> internalFactory, Scoping scoping) { in BindingImpl()
47 protected BindingImpl(Object source, Key<T> key, Scoping scoping) { in BindingImpl()
80 public Scoping getScoping() { in getScoping()
100 protected BindingImpl<T> withScoping(Scoping scoping) { in withScoping()
DLinkedProviderBindingImpl.java37 InternalFactory<? extends T> internalFactory, Scoping scoping, in LinkedProviderBindingImpl()
46 InternalFactory<? extends T> internalFactory, Scoping scoping, in LinkedProviderBindingImpl()
51 LinkedProviderBindingImpl(Object source, Key<T> key, Scoping scoping, in LinkedProviderBindingImpl()
59 Object source, InternalFactory<? extends T> internalFactory, Scoping scoping, in createWithInitializer()
84 public BindingImpl<T> withScoping(Scoping scoping) { in withScoping()
DAbstractBindingBuilder.java58 this.binding = new UntargettedBindingImpl<T>(source, key, Scoping.UNSCOPED); in AbstractBindingBuilder()
91 setBinding(getBinding().withScoping(Scoping.forAnnotation(scopeAnnotation))); in in()
97 setBinding(getBinding().withScoping(Scoping.forInstance(scope))); in in()
102 setBinding(getBinding().withScoping(Scoping.EAGER_SINGLETON)); in asEagerSingleton()
DConstructorBindingImpl.java50 InternalFactory<? extends T> scopedFactory, Scoping scoping, Factory<T> factory, in ConstructorBindingImpl()
57 public ConstructorBindingImpl(Key<T> key, Object source, Scoping scoping, in ConstructorBindingImpl()
74 InjectionPoint constructorInjector, Object source, Scoping scoping, Errors errors, in create()
113 scoping = Scoping.makeInjectable(Scoping.forAnnotation(scopeAnnotation), in create()
122 = Scoping.scope(key, injector, factoryFactory, source, scoping); in create()
203 @Override protected BindingImpl<T> withScoping(Scoping scoping) { in withScoping()
DUntargettedBindingImpl.java33 }, Scoping.UNSCOPED); in UntargettedBindingImpl()
36 public UntargettedBindingImpl(Object source, Key<T> key, Scoping scoping) { in UntargettedBindingImpl()
44 public BindingImpl<T> withScoping(Scoping scoping) { in withScoping()
DLinkedBindingImpl.java35 InternalFactory<? extends T> internalFactory, Scoping scoping, in LinkedBindingImpl()
41 public LinkedBindingImpl(Object source, Key<T> key, Scoping scoping, Key<? extends T> targetKey) { in LinkedBindingImpl()
58 public BindingImpl<T> withScoping(Scoping scoping) { in withScoping()
DInstanceBindingImpl.java42 super(injector, key, source, internalFactory, Scoping.EAGER_SINGLETON); in InstanceBindingImpl()
48 public InstanceBindingImpl(Object source, Key<T> key, Scoping scoping, in InstanceBindingImpl()
78 public BindingImpl<T> withScoping(Scoping scoping) { in withScoping()
DProviderInstanceBindingImpl.java41 Object source, InternalFactory<? extends T> internalFactory, Scoping scoping, in ProviderInstanceBindingImpl()
49 public ProviderInstanceBindingImpl(Object source, Key<T> key, Scoping scoping, in ProviderInstanceBindingImpl()
84 public BindingImpl<T> withScoping(Scoping scoping) { in withScoping()
DBindingProcessor.java97 = Scoping.scope(key, injector, factory, source, scoping); in visit()
117 = Scoping.scope(key, injector, factory, source, scoping); in visit()
133 InternalFactory<? extends T> scopedFactory = Scoping.scope( in visit()
151 = Scoping.scope(key, injector, factory, source, scoping); in visit()
DAbstractBindingProcessor.java142 Scoping scoping;
153 scoping = Scoping.makeInjectable(scoping, injector, errors); in prepareBinding()
DInjectorImpl.java353 Scoping.UNSCOPED); in ProviderBindingImpl()
470 new ConstantFactory<T>(Initializables.of(value)), Scoping.UNSCOPED);
625 <T> BindingImpl<T> createUninitializedBinding(Key<T> key, Scoping scoping, Object source,
699 <T> BindingImpl<T> createProvidedByBinding(Key<T> key, Scoping scoping,
719 Scoping.<T>scope(key, this, internalFactory, source, scoping),
728 private <T> BindingImpl<T> createImplementedByBinding(Key<T> key, Scoping scoping,
769 Scoping.<T>scope(key, this, internalFactory, source, scoping),
882 … BindingImpl<T> binding = createUninitializedBinding(key, Scoping.UNSCOPED, source, errors, true);
DExposedBindingImpl.java37 super(injector, key, source, factory, Scoping.UNSCOPED); in ExposedBindingImpl()
DInjectorShell.java224 injectorFactory, Scoping.UNSCOPED, injectorFactory, in bindInjector()
258 SourceProvider.UNKNOWN_SOURCE, loggerFactory, Scoping.UNSCOPED, in bindLogger()
DBindingBuilder.java96 base.getSource(), base.getKey(), Scoping.EAGER_SINGLETON, injectionPoints, instance)); in toInstance()
/external/libmojo/mojo/public/cpp/bindings/tests/
Dinterface_ptr_unittest.cc683 TEST_F(InterfacePtrTest, Scoping) { in TEST_F() argument