@Test public void providesInstanceByParameter() throws Exception { DependencySupplierImpl dependencySupplier = createDependencySupplier("foo", -1); Object instance = dependencySupplier.getInstance(createParameter(String.class, null, null)); assertEquals("foo", instance); }
@Override public Object getInstance(Class<?> type) { return dependencies.get(type); }
DependencySupplierImpl extends BaseDependencySupplier { @Override public Object getInstance(Class<?> type) { return dependencies.get(type); } }
DependencySupplierImpl extends BaseDependencySupplier { @Override public Object getInstance(Class<?> type) { return dependencies.get(type); } DependencySupplierImpl();  DependencySupplierImpl(Class<? extends Annotation> injectAnnotation); }
DependencySupplierImpl extends BaseDependencySupplier { @Override public Object getInstance(Class<?> type) { return dependencies.get(type); } DependencySupplierImpl();  DependencySupplierImpl(Class<? extends Annotation> injectAnnotation); void addInstance(Class<?> key, Object instance); @Override Object getInstance(Class<?> type); }
DependencySupplierImpl extends BaseDependencySupplier { @Override public Object getInstance(Class<?> type) { return dependencies.get(type); } DependencySupplierImpl();  DependencySupplierImpl(Class<? extends Annotation> injectAnnotation); void addInstance(Class<?> key, Object instance); @Override Object getInstance(Class<?> type);  }