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.java47 InstanceBinding<?> binding = (InstanceBinding<?>) injector.getBinding(A.class); in testInstanceWithDependencies()
59 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.java65 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()
/external/guice/core/src/com/google/inject/internal/
DInstanceBindingImpl.java28 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()
DBindingImpl.java25 import com.google.inject.spi.InstanceBinding;
89 return this instanceof InstanceBinding; in isConstant()
DAbstractBindingBuilder.java25 import com.google.inject.spi.InstanceBinding;
123 if (binding instanceof InstanceBinding) { in checkNotScoped()
DBindingProcessor.java27 import com.google.inject.spi.InstanceBinding;
87 public Boolean visit(InstanceBinding<? extends T> binding) { in visit()
/external/guice/extensions/grapher/src/com/google/inject/grapher/
DTransitiveDependencyVisitor.java28 import com.google.inject.spi.InstanceBinding;
66 @Override public Collection<Key<?>> visit(InstanceBinding<?> binding) { in visit()
DDefaultNodeCreator.java27 import com.google.inject.spi.InstanceBinding;
113 @Override public Collection<Node> visit(InstanceBinding<?> binding) { in visit()
DDefaultEdgeCreator.java27 import com.google.inject.spi.InstanceBinding;
100 @Override 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;
79 (InstanceBinding<?>) binding); in testVisitInstance()
88 (InstanceBinding<?>) binding); in testVisitInstance_instanceHasDependencies()
/external/guice/core/src/com/google/inject/spi/
DInstanceBinding.java29 public interface InstanceBinding<T> extends Binding<T>, HasDependencies { interface
DBindingTargetVisitor.java32 V visit(InstanceBinding<? extends T> binding); in visit()
DDefaultBindingTargetVisitor.java40 public V visit(InstanceBinding<? extends T> instanceBinding) { in visit()
DElements.java74 @Override public Object visit(InstanceBinding<?> binding) {
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
DIndexer.java30 import com.google.inject.spi.InstanceBinding;
123 @Override public Indexer.IndexedBinding visit(InstanceBinding<? extends Object> binding) { in visit()
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
DMultibinderTest.java58 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()
DMapBinderTest.java54 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()
DOptionalBinderTest.java54 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()
DSpiUtils.java67 import com.google.inject.spi.InstanceBinding;
1024 if (item instanceof InstanceBinding in matches()
1025 && ((InstanceBinding) item).getInstance().equals(result.instance)) { in matches()
/external/guice/core/test/com/google/inject/
DProvisionListenerTest.java31 import com.google.inject.spi.InstanceBinding;
478 if (provision.getBinding() instanceof InstanceBinding) { in onProvision()
/external/testng/lib-supplied/
Dguice-2.0.jarMETA-INF/ META-INF/MANIFEST.MF LICENSE NOTICE org/ org/testng/ ...