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)
| 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 |
no outgoing calls