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 Object
implements AndroidInjector.Factory<T>
Deprecated.
An adapter that lets the common
Subcomponent.Builder
pattern implement AndroidInjector.Factory
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract AndroidInjector<T>
build()
Deprecated.Returns a newly-constructedAndroidInjector
.final AndroidInjector<T>
Deprecated.Creates anAndroidInjector
forinstance
.abstract void
seedInstance
(T instance) Deprecated.Providesinstance
to be used in the binding graph of the builtAndroidInjector
.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
create
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
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
Deprecated.Returns a newly-constructedAndroidInjector
.
-
AndroidInjector.Factory
now that components can havefactories
instead of builders