Package dagger.android
Class AndroidInjector.Builder<T>
- java.lang.Object
-
- dagger.android.AndroidInjector.Builder<T>
-
- Type Parameters:
T- the concrete type to be injected
- All Implemented Interfaces:
AndroidInjector.Factory<T>
- Enclosing interface:
- AndroidInjector<T>
@Deprecated public abstract static class AndroidInjector.Builder<T> extends java.lang.Object implements AndroidInjector.Factory<T>
Deprecated.PreferAndroidInjector.Factorynow that components can havefactoriesinstead of buildersAn adapter that lets the commonSubcomponent.Builderpattern implementAndroidInjector.Factory.
-
-
Constructor Summary
Constructors Constructor Description Builder()Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract AndroidInjector<T>build()Deprecated.Returns a newly-constructedAndroidInjector.AndroidInjector<T>create(T instance)Deprecated.Creates anAndroidInjectorforinstance.abstract voidseedInstance(T instance)Deprecated.Providesinstanceto be used in the binding graph of the builtAndroidInjector.
-
-
-
Method Detail
-
create
public final AndroidInjector<T> create(T instance)
Deprecated.Description copied from interface:AndroidInjector.FactoryCreates anAndroidInjectorforinstance. This should be the same instance that will be passed toAndroidInjector.inject(Object).- Specified by:
createin interfaceAndroidInjector.Factory<T>
-
seedInstance
@BindsInstance public abstract void seedInstance(T instance)
Deprecated.Providesinstanceto be used in the binding graph of the builtAndroidInjector. By default, this is used as aBindsInstancemethod, but it may be overridden to provide any modules which need a reference to the activity.This should be the same instance that will be passed to
AndroidInjector.inject(Object).
-
build
public abstract AndroidInjector<T> build()
Deprecated.Returns a newly-constructedAndroidInjector.
-
-