io.relayr.java.websocket.MockWebSocketFactory$$InjectAdapter Maven / Gradle / Ivy
// Code generated by dagger-compiler. Do not edit.
package io.relayr.java.websocket;
import dagger.MembersInjector;
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 MockWebSocketFactory} and its
* dependencies.
*
* Being a {@code Provider} and handling creation and
* preparation of object instances.
*
* Being a {@code MembersInjector} and handling injection
* of annotated fields.
*/
public final class MockWebSocketFactory$$InjectAdapter extends Binding
implements Provider, MembersInjector {
private Binding mockBackend;
private Binding supertype;
public MockWebSocketFactory$$InjectAdapter() {
super("io.relayr.java.websocket.MockWebSocketFactory", "members/io.relayr.java.websocket.MockWebSocketFactory", NOT_SINGLETON, MockWebSocketFactory.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", MockWebSocketFactory.class, getClass().getClassLoader());
supertype = (Binding) linker.requestBinding("members/io.relayr.java.websocket.WebSocketFactory", MockWebSocketFactory.class, getClass().getClassLoader(), false, true);
}
/**
* Used internally obtain dependency information, such as for cyclical
* graph detection.
*/
@Override
public void getDependencies(Set> getBindings, Set> injectMembersBindings) {
getBindings.add(mockBackend);
injectMembersBindings.add(supertype);
}
/**
* Returns the fully provisioned instance satisfying the contract for
* {@code Provider}.
*/
@Override
public MockWebSocketFactory get() {
MockWebSocketFactory result = new MockWebSocketFactory(mockBackend.get());
injectMembers(result);
return result;
}
/**
* Injects any {@code @Inject} annotated fields in the given instance,
* satisfying the contract for {@code Provider}.
*/
@Override
public void injectMembers(MockWebSocketFactory object) {
supertype.injectMembers(object);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy