@Target(value=METHOD) public @interface ContributesAndroidInjector
AndroidInjector
for the return type of this method. The injector is
implemented with a Subcomponent
and will be a child of the Module
's
component.
This annotation must be applied to an abstract method in a Module
that returns
a concrete Android framework type (e.g. FooActivity
, BarFragment
, MyService
, etc). The method should have no parameters.
For more information, see the docs
Modifier and Type | Optional Element and Description |
---|---|
Class<?>[] |
modules
Modules to be installed in the generated
Subcomponent . |
public abstract Class<?>[] modules
Subcomponent
.Copyright © 2012–2017 The Dagger Authors. All rights reserved.