MCPcopy Create free account
hub / github.com/google/guice / combine

Method combine

core/src/com/google/inject/util/Modules.java:121–123  ·  view source on GitHub ↗

Returns a new module that installs all of modules. Although sometimes helpful, this method is rarely necessary. Most Guice APIs accept multiple arguments or (like install()) can be called repeatedly. Where possible, external APIs that require a single module should similarly be a

(Module... modules)

Source from the content-addressed store, hash-verified

119 * that require a single module should similarly be adapted to permit multiple modules.
120 */
121 public static Module combine(Module... modules) {
122 return combine(ImmutableSet.copyOf(modules));
123 }
124
125 /** @deprecated there's no need to "combine" one module; just install it directly. */
126 @Deprecated

Callers 3

testCombineVarargsMethod · 0.95
testCombineIterableMethod · 0.95
testCombineSourcesMethod · 0.95

Calls

no outgoing calls

Tested by 3

testCombineVarargsMethod · 0.76
testCombineIterableMethod · 0.76
testCombineSourcesMethod · 0.76