/external/guice/core/src/com/google/inject/internal/ |
D | Scoping.java | 38 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 …]
|
D | BindingImpl.java | 35 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()
|
D | LinkedProviderBindingImpl.java | 37 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()
|
D | AbstractBindingBuilder.java | 58 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()
|
D | ConstructorBindingImpl.java | 50 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()
|
D | UntargettedBindingImpl.java | 33 }, 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()
|
D | LinkedBindingImpl.java | 35 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()
|
D | InstanceBindingImpl.java | 42 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()
|
D | ProviderInstanceBindingImpl.java | 41 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()
|
D | BindingProcessor.java | 97 = 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()
|
D | AbstractBindingProcessor.java | 142 Scoping scoping; 153 scoping = Scoping.makeInjectable(scoping, injector, errors); in prepareBinding()
|
D | InjectorImpl.java | 353 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);
|
D | ExposedBindingImpl.java | 37 super(injector, key, source, factory, Scoping.UNSCOPED); in ExposedBindingImpl()
|
D | InjectorShell.java | 224 injectorFactory, Scoping.UNSCOPED, injectorFactory, in bindInjector() 258 SourceProvider.UNKNOWN_SOURCE, loggerFactory, Scoping.UNSCOPED, in bindLogger()
|
D | BindingBuilder.java | 96 base.getSource(), base.getKey(), Scoping.EAGER_SINGLETON, injectionPoints, instance)); in toInstance()
|
/external/libmojo/mojo/public/cpp/bindings/tests/ |
D | interface_ptr_unittest.cc | 683 TEST_F(InterfacePtrTest, Scoping) { in TEST_F() argument
|