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.Factory
now that components can havefactories
instead of buildersAn adapter that lets the commonSubcomponent.Builder
pattern 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 anAndroidInjector
forinstance
.abstract void
seedInstance(T instance)
Deprecated.Providesinstance
to 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.Factory
Creates anAndroidInjector
forinstance
. This should be the same instance that will be passed toAndroidInjector.inject(Object)
.- Specified by:
create
in interfaceAndroidInjector.Factory<T>
-
seedInstance
@BindsInstance public abstract void seedInstance(T instance)
Deprecated.Providesinstance
to be used in the binding graph of the builtAndroidInjector
. By default, this is used as aBindsInstance
method, 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
.
-
-