Home
last modified time | relevance | path

Searched refs:InstanceBinding (Results 1 – 22 of 22) sorted by relevance

/external/guice/core/test/com/google/inject/spi/
DHasDependenciesTest.java44 InstanceBinding<?> binding = (InstanceBinding<?>) injector.getBinding(A.class); in testInstanceWithDependencies()
60 InstanceBinding<?> binding = (InstanceBinding<?>) injector.getBinding(A.class); in testInstanceWithoutDependencies()
DElementsTest.java167 assertTrue(command instanceof InstanceBinding); in testBindConstantAnnotations()
176 assertTrue(command instanceof InstanceBinding); in testBindConstantAnnotations()
205 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes()
214 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes()
223 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes()
232 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes()
241 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes()
250 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes()
259 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes()
268 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes()
[all …]
DSpiBindingsTest.java62 assertTrue(binding instanceof InstanceBinding); in testBindConstant()
80 assertTrue(binding instanceof InstanceBinding); in testToInstanceBinding()
86 public Void visit(InstanceBinding<? extends T> binding) { in testToInstanceBinding()
237 assertTrue(binding instanceof InstanceBinding); in testConstantBinding()
243 public Void visit(InstanceBinding<? extends T> binding) { in testConstantBinding()
/external/guice/core/src/com/google/inject/internal/
DInstanceBindingImpl.java28 import com.google.inject.spi.InstanceBinding;
31 final class InstanceBindingImpl<T> extends BindingImpl<T> implements InstanceBinding<T> {
95 return MoreObjects.toStringHelper(InstanceBinding.class) in toString()
DBindingImpl.java25 import com.google.inject.spi.InstanceBinding;
94 return this instanceof InstanceBinding; in isConstant()
DAbstractBindingBuilder.java25 import com.google.inject.spi.InstanceBinding;
122 if (binding instanceof InstanceBinding) { in checkNotScoped()
DIndexer.java30 import com.google.inject.spi.InstanceBinding;
132 public Indexer.IndexedBinding visit(InstanceBinding<? extends Object> binding) { in visit()
DBindingProcessor.java27 import com.google.inject.spi.InstanceBinding;
96 public Boolean visit(InstanceBinding<? extends T> binding) { in visit()
DInjectorImpl.java47 import com.google.inject.spi.InstanceBinding;
451 String stringValue = ((InstanceBinding<String>) stringBinding).getInstance();
/external/guice/extensions/grapher/src/com/google/inject/grapher/
DTransitiveDependencyVisitor.java28 import com.google.inject.spi.InstanceBinding;
67 public Collection<Key<?>> visit(InstanceBinding<?> binding) { in visit()
DDefaultNodeCreator.java27 import com.google.inject.spi.InstanceBinding;
115 public Collection<Node> visit(InstanceBinding<?> binding) { in visit()
DDefaultEdgeCreator.java27 import com.google.inject.spi.InstanceBinding;
105 public Collection<Edge> visit(InstanceBinding<?> binding) { in visit()
/external/guice/extensions/grapher/test/com/google/inject/grapher/
DTransitiveDependencyVisitorTest.java33 import com.google.inject.spi.InstanceBinding;
75 Collection<Key<?>> dependencies = visitor.visit((InstanceBinding<?>) binding); in testVisitInstance()
83 Collection<Key<?>> dependencies = visitor.visit((InstanceBinding<?>) binding); in testVisitInstance_instanceHasDependencies()
/external/guice/core/src/com/google/inject/spi/
DInstanceBinding.java28 public interface InstanceBinding<T> extends Binding<T>, HasDependencies { interface
DBindingTargetVisitor.java32 V visit(InstanceBinding<? extends T> binding); in visit()
DDefaultBindingTargetVisitor.java38 public V visit(InstanceBinding<? extends T> instanceBinding) { in visit()
DElements.java74 public Object visit(InstanceBinding<?> binding) {
/external/guice/core/test/com/google/inject/internal/
DMapBinderTest.java59 import com.google.inject.spi.InstanceBinding;
939 if (binding instanceof InstanceBinding) { in recurseForDependencies()
940 elements.add((String) ((InstanceBinding<?>) binding).getInstance()); in recurseForDependencies()
1325 assertEquals("a", ((InstanceBinding<String>) a).getInstance()); in testTwoMapBindersAreDistinct()
1326 assertEquals("b", ((InstanceBinding<String>) b).getInstance()); in testTwoMapBindersAreDistinct()
1385 assertEquals("valueOne", ((InstanceBinding) firstBinding).getInstance()); in testGetEntries()
1390 assertEquals("valueTwo", ((InstanceBinding) secondBinding).getInstance()); in testGetEntries()
1419 assertEquals("a1", ((InstanceBinding) firstBinding).getInstance()); in testGetEntriesWithDuplicateKeys()
1424 assertEquals("a2", ((InstanceBinding) secondBinding).getInstance()); in testGetEntriesWithDuplicateKeys()
1452 assertEquals("a", ((InstanceBinding) firstBinding).getInstance()); in testGetEntriesWithDuplicateValues()
[all …]
DMultibinderTest.java62 import com.google.inject.spi.InstanceBinding;
717 InstanceBinding<?> instanceBinding = null; in testMultibinderDependenciesInToolStage()
728 if (b instanceof InstanceBinding) { in testMultibinderDependenciesInToolStage()
736 instanceBinding = (InstanceBinding) b; in testMultibinderDependenciesInToolStage()
1171 InstanceBinding<?> binding = in testBindingKeysFixedOnReturnFromGetElements()
1172 Iterables.getOnlyElement(Iterables.filter(Elements.getElements(ab), InstanceBinding.class)); in testBindingKeysFixedOnReturnFromGetElements()
1375 .filter(Predicates.instanceOf(InstanceBinding.class)) in testSetAndMapValueAreDistinctInSpi()
1381 assertEquals("A", ((InstanceBinding<String>) a).getInstance()); in testSetAndMapValueAreDistinctInSpi()
1382 assertEquals("b", ((InstanceBinding<String>) b).getInstance()); in testSetAndMapValueAreDistinctInSpi()
1383 assertEquals("C", ((InstanceBinding<String>) c).getInstance()); in testSetAndMapValueAreDistinctInSpi()
DOptionalBinderTest.java53 import com.google.inject.spi.InstanceBinding;
1099 if (binding instanceof InstanceBinding) { in recurseForDependencies()
1100 elements.add((String) ((InstanceBinding) binding).getInstance()); in recurseForDependencies()
1368 InstanceBinding<?> binding = in testBindingKeysFixedOnReturnFromGetElements()
1369 Iterables.getOnlyElement(Iterables.filter(Elements.getElements(m), InstanceBinding.class)); in testBindingKeysFixedOnReturnFromGetElements()
DSpiUtils.java71 import com.google.inject.spi.InstanceBinding;
1214 if (item instanceof InstanceBinding in matches()
1215 && ((InstanceBinding) item).getInstance().equals(result.instance)) { in matches()
/external/guice/core/test/com/google/inject/
DProvisionListenerTest.java32 import com.google.inject.spi.InstanceBinding;
583 if (provision.getBinding() instanceof InstanceBinding) { in onProvision()