Package com.google.inject.spi
Class Elements.ElementsAsModule
- java.lang.Object
-
- com.google.inject.spi.Elements.ElementsAsModule
-
-
Constructor Summary
Constructors Constructor Description ElementsAsModule(java.lang.Iterable<? extends Element> elements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Binder binder)
Contributes bindings and other configurations for this module tobinder
.
-
-
-
Field Detail
-
elements
private final java.lang.Iterable<? extends Element> elements
-
-
Constructor Detail
-
ElementsAsModule
ElementsAsModule(java.lang.Iterable<? extends Element> elements)
-
-
Method Detail
-
configure
public void configure(Binder binder)
Description copied from interface:Module
Contributes bindings and other configurations for this module tobinder
.Do not invoke this method directly to install submodules. Instead use
Binder.install(Module)
, which ensures thatprovider methods
are discovered.
-
-