public final class Elements
extends java.lang.Object
rewritten.| Constructor and Description |
|---|
Elements() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<Element> |
getElements(java.lang.Iterable<? extends Module> modules)
Records the elements executed by
modules. |
static java.util.List<Element> |
getElements(Module... modules)
Records the elements executed by
modules. |
static java.util.List<Element> |
getElements(Stage stage,
java.lang.Iterable<? extends Module> modules)
Records the elements executed by
modules. |
static java.util.List<Element> |
getElements(Stage stage,
Module... modules)
Records the elements executed by
modules. |
static Module |
getModule(java.lang.Iterable<? extends Element> elements)
Returns the module composed of
elements. |
static Binder |
withTrustedSource(GuiceInternal guiceInternal,
Binder binder,
java.lang.Object source)
Internal version of Binder.withSource for establishing a trusted ElementSource chain for
source-restricting bindings that are re-written using
Element.applyTo(com.google.inject.Binder). |
public static java.util.List<Element> getElements(Module... modules)
modules.public static java.util.List<Element> getElements(Stage stage, Module... modules)
modules.public static java.util.List<Element> getElements(java.lang.Iterable<? extends Module> modules)
modules.public static java.util.List<Element> getElements(Stage stage, java.lang.Iterable<? extends Module> modules)
modules.public static Binder withTrustedSource(GuiceInternal guiceInternal, Binder binder, java.lang.Object source)
Element.applyTo(com.google.inject.Binder).
Using Binder.withSource is not trustworthy because it's a public API that external users can use to spoof the original ElementSource of a binding by calling withSource(bogusElementSource).