Package com.google.inject.daggeradapter
Class DaggerAdapter.Builder
- java.lang.Object
-
- com.google.inject.daggeradapter.DaggerAdapter.Builder
-
- Enclosing class:
- DaggerAdapter
public static class DaggerAdapter.Builder extends Object
Builder for setting configuration options on DaggerAdapter.- Since:
- 5.0
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DaggerAdapter.Builder
addModules(Iterable<Object> daggerModuleObjects)
Adds modules (which can be classes annotated withModule
, or instances of those classes) which will be scanned for bindings.Module
build()
Returns a module that will configure bindings based on the modules & scanners.DaggerAdapter.Builder
filter(Predicate<Method> predicate)
Limit the adapter to a subset ofmethods
from {@link @dagger.Module} annotated classes which satisfy thepredicate
.
-
-
-
Method Detail
-
build
public Module build()
Returns a module that will configure bindings based on the modules & scanners.
-
addModules
public DaggerAdapter.Builder addModules(Iterable<Object> daggerModuleObjects)
Adds modules (which can be classes annotated withModule
, or instances of those classes) which will be scanned for bindings.
-
filter
public DaggerAdapter.Builder filter(Predicate<Method> predicate)
Limit the adapter to a subset ofmethods
from {@link @dagger.Module} annotated classes which satisfy thepredicate
. Defaults to allowing all.
-
-