All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.relayr.java.api.mock.MockRelayrApi$$InjectAdapter Maven / Gradle / Ivy

// Code generated by dagger-compiler.  Do not edit.
package io.relayr.java.api.mock;

import dagger.internal.Binding;
import dagger.internal.Linker;
import java.util.Set;
import javax.inject.Provider;

/**
 * A {@code Binding} implementation which satisfies
 * Dagger's infrastructure requirements including:
 *
 * Owning the dependency links between {@code MockRelayrApi} and its
 * dependencies.
 *
 * Being a {@code Provider} and handling creation and
 * preparation of object instances.
 */
public final class MockRelayrApi$$InjectAdapter extends Binding
    implements Provider {
  private Binding mockBackend;

  public MockRelayrApi$$InjectAdapter() {
    super("io.relayr.java.api.mock.MockRelayrApi", "members/io.relayr.java.api.mock.MockRelayrApi", NOT_SINGLETON, MockRelayrApi.class);
  }

  /**
   * Used internally to link bindings/providers together at run time
   * according to their dependency graph.
   */
  @Override
  @SuppressWarnings("unchecked")
  public void attach(Linker linker) {
    mockBackend = (Binding) linker.requestBinding("io.relayr.java.api.mock.MockBackend", MockRelayrApi.class, getClass().getClassLoader());
  }

  /**
   * Used internally obtain dependency information, such as for cyclical
   * graph detection.
   */
  @Override
  public void getDependencies(Set> getBindings, Set> injectMembersBindings) {
    getBindings.add(mockBackend);
  }

  /**
   * Returns the fully provisioned instance satisfying the contract for
   * {@code Provider}.
   */
  @Override
  public MockRelayrApi get() {
    MockRelayrApi result = new MockRelayrApi(mockBackend.get());
    return result;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy