Searched refs:InstanceBinding (Results 1 – 22 of 22) sorted by relevance
47 InstanceBinding<?> binding = (InstanceBinding<?>) injector.getBinding(A.class); in testInstanceWithDependencies()59 InstanceBinding<?> binding = (InstanceBinding<?>) injector.getBinding(A.class); in testInstanceWithoutDependencies()
167 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 …]
65 assertTrue(binding instanceof InstanceBinding); in testBindConstant()83 assertTrue(binding instanceof InstanceBinding); in testToInstanceBinding()87 @Override public Void visit(InstanceBinding<? extends T> binding) { in testToInstanceBinding()229 assertTrue(binding instanceof InstanceBinding); in testConstantBinding()233 @Override public Void visit(InstanceBinding<? extends T> binding) { in testConstantBinding()
28 import com.google.inject.spi.InstanceBinding;33 final class InstanceBindingImpl<T> extends BindingImpl<T> implements InstanceBinding<T> {92 return Objects.toStringHelper(InstanceBinding.class) in toString()
25 import com.google.inject.spi.InstanceBinding;89 return this instanceof InstanceBinding; in isConstant()
25 import com.google.inject.spi.InstanceBinding;123 if (binding instanceof InstanceBinding) { in checkNotScoped()
27 import com.google.inject.spi.InstanceBinding;87 public Boolean visit(InstanceBinding<? extends T> binding) { in visit()
28 import com.google.inject.spi.InstanceBinding;66 @Override public Collection<Key<?>> visit(InstanceBinding<?> binding) { in visit()
27 import com.google.inject.spi.InstanceBinding;113 @Override public Collection<Node> visit(InstanceBinding<?> binding) { in visit()
27 import com.google.inject.spi.InstanceBinding;100 @Override public Collection<Edge> visit(InstanceBinding<?> binding) { in visit()
33 import com.google.inject.spi.InstanceBinding;79 (InstanceBinding<?>) binding); in testVisitInstance()88 (InstanceBinding<?>) binding); in testVisitInstance_instanceHasDependencies()
29 public interface InstanceBinding<T> extends Binding<T>, HasDependencies { interface
32 V visit(InstanceBinding<? extends T> binding); in visit()
40 public V visit(InstanceBinding<? extends T> instanceBinding) { in visit()
74 @Override public Object visit(InstanceBinding<?> binding) {
30 import com.google.inject.spi.InstanceBinding;123 @Override public Indexer.IndexedBinding visit(InstanceBinding<? extends Object> binding) { in visit()
58 import com.google.inject.spi.InstanceBinding;542 InstanceBinding<?> instanceBinding = null; in testMultibinderDependenciesInToolStage()553 if(b instanceof InstanceBinding) { in testMultibinderDependenciesInToolStage()557 instanceBinding = (InstanceBinding)b; in testMultibinderDependenciesInToolStage()934 InstanceBinding<?> binding = Iterables.getOnlyElement( in testBindingKeysFixedOnReturnFromGetElements()935 Iterables.filter(Elements.getElements(ab), InstanceBinding.class)); in testBindingKeysFixedOnReturnFromGetElements()1116 .filter(Predicates.instanceOf(InstanceBinding.class)) in testSetAndMapValueAreDistinctInSpi()1122 assertEquals("A", ((InstanceBinding<String>) a).getInstance()); in testSetAndMapValueAreDistinctInSpi()1123 assertEquals("b", ((InstanceBinding<String>) b).getInstance()); in testSetAndMapValueAreDistinctInSpi()1124 assertEquals("C", ((InstanceBinding<String>) c).getInstance()); in testSetAndMapValueAreDistinctInSpi()
54 import com.google.inject.spi.InstanceBinding;696 if (binding instanceof InstanceBinding) { in recurseForDependencies()697 elements.add((String) ((InstanceBinding<?>) binding).getInstance()); in recurseForDependencies()994 assertEquals("a", ((InstanceBinding<String>) a).getInstance()); in testTwoMapBindersAreDistinct()995 assertEquals("b", ((InstanceBinding<String>) b).getInstance()); in testTwoMapBindersAreDistinct()
54 import com.google.inject.spi.InstanceBinding;899 if (binding instanceof InstanceBinding) { in recurseForDependencies()900 elements.add((String) ((InstanceBinding) binding).getInstance()); in recurseForDependencies()1145 InstanceBinding<?> binding = Iterables.getOnlyElement( in testBindingKeysFixedOnReturnFromGetElements()1146 Iterables.filter(Elements.getElements(m), InstanceBinding.class)); in testBindingKeysFixedOnReturnFromGetElements()
67 import com.google.inject.spi.InstanceBinding;1024 if (item instanceof InstanceBinding in matches()1025 && ((InstanceBinding) item).getInstance().equals(result.instance)) { in matches()
31 import com.google.inject.spi.InstanceBinding;478 if (provision.getBinding() instanceof InstanceBinding) { in onProvision()
META-INF/ META-INF/MANIFEST.MF LICENSE NOTICE org/ org/testng/ ...