Class Elements
java.lang.Object
com.google.inject.spi.Elements
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetElements(Module... modules) Records the elements executed bymodules.getElements(Stage stage, Module... modules) Records the elements executed bymodules.getElements(Stage stage, Iterable<? extends Module> modules) Records the elements executed bymodules.getElements(Iterable<? extends Module> modules) Records the elements executed bymodules.static ModuleReturns the module composed ofelements.static BinderwithTrustedSource(GuiceInternal guiceInternal, Binder binder, Object source) Internal version of Binder.withSource for establishing a trusted ElementSource chain for source-restricting bindings that are re-written usingElement.applyTo(Binder).
-
Constructor Details
-
Elements
public Elements()
-
-
Method Details
-
getElements
-
getElements
-
getElements
-
getElements
-
withTrustedSource
Internal version of Binder.withSource for establishing a trusted ElementSource chain for source-restricting bindings that are re-written usingElement.applyTo(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).
- Since:
- 5.0
-
getModule
-