T
- a concrete subtype of a core Android type@Beta
@DoNotMock(value="Faked versions of AndroidInjector are much clearer than a mock. See https://google.github.io/dagger/testing")
public interface AndroidInjector<T>
Activity
or Fragment
).
Commonly implemented by Subcomponent
-annotated types whose Subcomponent.Builder
extends AndroidInjector.Builder
.
AndroidInjection
,
DispatchingAndroidInjector
Modifier and Type | Interface and Description |
---|---|
static class |
AndroidInjector.Builder<T>
An adapter that lets the common
Subcomponent.Builder pattern implement AndroidInjector.Factory . |
static interface |
AndroidInjector.Factory<T>
Creates
AndroidInjector s for a concrete subtype of a core Android type. |
Modifier and Type | Method and Description |
---|---|
void |
inject(T instance)
Injects the members of
instance . |
void inject(T instance)
instance
.Copyright © 2012–2017 The Dagger Authors. All rights reserved.