blob: a0780414c122f5e5e48f0d0f313c6bce63db6bfc [file] [log] [blame]
limpbizkit@gmail.com12ed8332010-10-05 02:14:25 +00001<!DOCTYPE html>
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52<html>
53<head>
54<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
55<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" />
56<title>
57
58 Modules
59
60
61| Guice
62
63</title>
64<link href="../../../../../javadoc/assets/android-developer-docs.css" rel="stylesheet" type="text/css" />
65<link href="../../../../../javadoc/assets/customizations.css" rel="stylesheet" type="text/css" />
66<script src="../../../../../javadoc/assets/search_autocomplete.js" type="text/javascript"></script>
67<script src="../../../../../javadoc/assets/jquery-resizable.min.js" type="text/javascript"></script>
68<script src="../../../../../javadoc/assets/android-developer-docs.js" type="text/javascript"></script>
69<script src="../../../../../javadoc/assets/prettify.js" type="text/javascript"></script>
70<script type="text/javascript">
71 setToRoot("../../../../", "../../../../../javadoc/assets/");
72</script>
73<script src="../../../../../javadoc/assets/android-developer-reference.js" type="text/javascript"></script>
74<script src="../../../../../javadoc/assets/navtree_data.js" type="text/javascript"></script>
75<script src="../../../../../javadoc/assets/customizations.js" type="text/javascript"></script>
76<noscript>
77 <style type="text/css">
78 html,body{overflow:auto;}
79 #body-content{position:relative; top:0;}
80 #doc-content{overflow:visible;border-left:3px solid #666;}
81 #side-nav{padding:0;}
82 #side-nav .toggle-list ul {display:block;}
83 #resize-packages-nav{border-bottom:3px solid #666;}
84 </style>
85</noscript>
86</head>
87
88<body class="Guice_2.0">
89
90<div id="header">
91 <div id="headerLeft">
92
93 <span id="masthead-title">Guice</span>
94
95 </div>
96 <div id="headerRight">
97
98 <div id="search" >
99 <div id="searchForm">
100 <form accept-charset="utf-8" class="gsc-search-box"
101 onsubmit="return submit_search()">
102 <table class="gsc-search-box" cellpadding="0" cellspacing="0"><tbody>
103 <tr>
104 <td class="gsc-input">
105 <input id="search_autocomplete" class="gsc-input" type="text" size="33" autocomplete="off"
106 title="search developer docs" name="q"
107 value="search developer docs"
108 onFocus="search_focus_changed(this, true)"
109 onBlur="search_focus_changed(this, false)"
110 onkeydown="return search_changed(event, true, '../../../../')"
111 onkeyup="return search_changed(event, false, '../../../../')" />
112 <div id="search_filtered_div" class="no-display">
113 <table id="search_filtered" cellspacing=0>
114 </table>
115 </div>
116 </td>
117 <td class="gsc-search-button">
118 <input type="submit" value="Search" title="search" id="search-button" class="gsc-search-button" />
119 </td>
120 <td class="gsc-clear-button">
121 <div title="clear results" class="gsc-clear-button">&nbsp;</div>
122 </td>
123 </tr></tbody>
124 </table>
125 </form>
126 </div><!-- searchForm -->
127 </div><!-- search -->
128
129
130 <div id="api-level-toggle">
131 <input type="checkbox" id="apiLevelCheckbox" onclick="toggleApiLevelSelector(this)" />
132 <label for="apiLevelCheckbox" class="disabled">Filter by API Level: </label>
133 <select id="apiLevelSelector">
134 <!-- option elements added by buildApiLevelSelector() -->
135 </select>
136 </div>
137 <script>
138 var SINCE_DATA = [ 'Guice_1.0', 'Guice_2.0' ];
139
140 var SINCE_LABELS = [ 'Guice_1.0', 'Guice_2.0' ];
141 buildApiLevelSelector();
142 addLoadEvent(changeApiLevel);
143 </script>
144
145
146
147 </div>
148</div><!-- header -->
149
150
151 <div class="g-section g-tpl-240" id="body-content">
152 <div class="g-unit g-first side-nav-resizable" id="side-nav">
153 <div id="swapper">
154 <div id="nav-panels">
155 <div id="resize-packages-nav">
156 <div id="packages-nav">
157 <div id="index-links"><nobr>
158 <a href="../../../../packages.html" >Package Index</a> |
159 <a href="../../../../classes.html" >Class Index</a></nobr>
160 </div>
161 <ul>
162
163 <li class="api apilevel-Guice_1.0">
164 <a href="../../../../com/google/inject/package-summary.html">com.google.inject</a></li>
165 <li class="api apilevel-Guice_2.0">
166 <a href="../../../../com/google/inject/assistedinject/package-summary.html">com.google.inject.assistedinject</a></li>
167 <li class="api apilevel-Guice_1.0">
168 <a href="../../../../com/google/inject/binder/package-summary.html">com.google.inject.binder</a></li>
169 <li class="api apilevel-Guice_1.0">
170 <a href="../../../../com/google/inject/jndi/package-summary.html">com.google.inject.jndi</a></li>
171 <li class="api apilevel-Guice_1.0">
172 <a href="../../../../com/google/inject/matcher/package-summary.html">com.google.inject.matcher</a></li>
173 <li class="api apilevel-Guice_2.0">
174 <a href="../../../../com/google/inject/multibindings/package-summary.html">com.google.inject.multibindings</a></li>
175 <li class="api apilevel-Guice_1.0">
176 <a href="../../../../com/google/inject/name/package-summary.html">com.google.inject.name</a></li>
177 <li class="api apilevel-Guice_1.0">
178 <a href="../../../../com/google/inject/spi/package-summary.html">com.google.inject.spi</a></li>
179 <li class="api apilevel-Guice_2.0">
180 <a href="../../../../com/google/inject/throwingproviders/package-summary.html">com.google.inject.throwingproviders</a></li>
181 <li class="api apilevel-Guice_1.0">
182 <a href="../../../../com/google/inject/tools/jmx/package-summary.html">com.google.inject.tools.jmx</a></li>
183 <li class="selected api apilevel-Guice_2.0">
184 <a href="../../../../com/google/inject/util/package-summary.html">com.google.inject.util</a></li>
185 </ul><br/>
186 </div> <!-- end packages -->
187 </div> <!-- end resize-packages -->
188 <div id="classes-nav">
189 <ul>
190
191 <li><h2>Interfaces</h2>
192 <ul>
193 <li class="api apilevel-Guice_2.0"><a href="../../../../com/google/inject/util/Modules.OverriddenModuleBuilder.html">Modules.OverriddenModuleBuilder</a></li>
194 </ul>
195 </li>
196
197 <li><h2>Classes</h2>
198 <ul>
199 <li class="api apilevel-Guice_2.0"><a href="../../../../com/google/inject/util/Jsr330.html">Jsr330</a></li>
200 <li class="selected api apilevel-Guice_2.0"><a href="../../../../com/google/inject/util/Modules.html">Modules</a></li>
201 <li class="api apilevel-Guice_2.0"><a href="../../../../com/google/inject/util/Providers.html">Providers</a></li>
202 <li class="api apilevel-Guice_2.0"><a href="../../../../com/google/inject/util/Types.html">Types</a></li>
203 </ul>
204 </li>
205
206
207
208
209 </ul><br/>
210 </div><!-- end classes -->
211 </div><!-- end nav-panels -->
212 <div id="nav-tree" style="display:none">
213 <div id="index-links"><nobr>
214 <a href="../../../../packages.html" >Package Index</a> |
215 <a href="../../../../classes.html" >Class Index</a></nobr>
216 </div>
217 </div><!-- end nav-tree -->
218 </div><!-- end swapper -->
219 </div> <!-- end side-nav -->
220 <script>
221 if (!isMobile) {
222 $("<a href='#' id='nav-swap' onclick='swapNav();return false;' style='font-size:10px;line-height:9px;margin-left:1em;text-decoration:none;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>").appendTo("#side-nav");
223 chooseDefaultNav();
224 if ($("#nav-tree").is(':visible')) {
225 init_default_navtree("../../../../");
226 } else {
227 addLoadEvent(function() {
228 scrollIntoView("packages-nav");
229 scrollIntoView("classes-nav");
230 });
231 }
232 $("#swapper").css({borderBottom:"2px solid #aaa"});
233 } else {
234 swapNav(); // tree view should be used on mobile
235 }
236 </script>
237
238
239
240<div class="g-unit" id="doc-content">
241
242<div id="api-info-block">
243
244
245
246
247
248
249
250
251
252
253
254<div class="sum-details-links">
255
256Summary:
257
258 <a href="#nestedclasses">Nested Classes</a>
259
260
261
262
263
264
265 &#124; <a href="#constants">Constants</a>
266
267
268
269
270
271
272
273
274 &#124; <a href="#pubmethods">Methods</a>
275
276
277
278
279 &#124; <a href="#inhmethods">Inherited Methods</a>
280
281&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
282
283</div><!-- end sum-details-links -->
284<div class="api-level">
285
286
287 Since: <a href="../../../../guide/appendix/api-levels.html#levelGuice_2.0">API Level Guice_2.0</a>
288
289
290
291
292
293</div>
294</div><!-- end api-info-block -->
295
296
297<!-- ======== START OF CLASS DATA ======== -->
298
299<div id="jd-header">
300 public
301
302 final
303
304 class
305<h1>Modules</h1>
306
307
308
309
310 extends Object<br/>
311
312
313
314
315
316
317
318
319
320</div><!-- end header -->
321
322<div id="naMessage"></div>
323
324<div id="jd-content" class="api apilevel-Guice_2.0">
325<table class="jd-inheritance-table">
326
327
328 <tr>
329
330 <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object</td>
331 </tr>
332
333
334 <tr>
335
336 <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
337
338 <td colspan="1" class="jd-inheritance-class-cell">com.google.inject.util.Modules</td>
339 </tr>
340
341
342</table>
343
344
345
346
347
348
349
350<div class="jd-descr">
351
352
353<h2>Class Overview</h2>
354<p>Static utility methods for creating and working with instances of <code><a href="../../../../com/google/inject/Module.html">Module</a></code>.</p>
355
356
357
358
359
360</div><!-- jd-descr -->
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377<div class="jd-descr">
378
379
380<h2>Summary</h2>
381
382
383
384<!-- ======== NESTED CLASS SUMMARY ======== -->
385<table id="nestedclasses" class="jd-sumtable"><tr><th colspan="12">Nested Classes</th></tr>
386
387
388
389 <tr class="alt-color api apilevel-Guice_2.0" >
390 <td class="jd-typecol"><nobr>
391
392
393
394
395 interface</nobr></td>
396 <td class="jd-linkcol"><a href="../../../../com/google/inject/util/Modules.OverriddenModuleBuilder.html">Modules.OverriddenModuleBuilder</a></td>
397 <td class="jd-descrcol" width="100%">See the EDSL example at <code><a href="../../../../com/google/inject/util/Modules.html#override(com.google.inject.Module...)">override()</a></code>.&nbsp;</td>
398 </tr>
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414<!-- =========== ENUM CONSTANT SUMMARY =========== -->
415<table id="constants" class="jd-sumtable"><tr><th colspan="12">Constants</th></tr>
416
417
418
419 <tr class="alt-color api apilevel-Guice_2.0" >
420 <td class="jd-typecol"><a href="../../../../com/google/inject/Module.html">Module</a></td>
421 <td class="jd-linkcol"><a href="../../../../com/google/inject/util/Modules.html#EMPTY_MODULE">EMPTY_MODULE</a></td>
422 <td class="jd-descrcol" width="100%"></td>
423 </tr>
424
425
426
427</table>
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444<!-- ========== METHOD SUMMARY =========== -->
445<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>
446
447
448
449
450 <tr class="alt-color api apilevel-Guice_2.0" >
451 <td class="jd-typecol"><nobr>
452
453
454
455 static
456
457 <a href="../../../../com/google/inject/Module.html">Module</a></nobr>
458 </td>
459 <td class="jd-linkcol" width="100%"><nobr>
460 <span class="sympad"><a href="../../../../com/google/inject/util/Modules.html#combine(com.google.inject.Module...)">combine</a></span>(<a href="../../../../com/google/inject/Module.html">Module...</a> modules)</nobr>
461
462 <div class="jd-descrdiv">Returns a new module that installs all of <code>modules</code>.</div>
463
464 </td></tr>
465
466
467
468 <tr class=" api apilevel-Guice_2.0" >
469 <td class="jd-typecol"><nobr>
470
471
472
473 static
474
475 <a href="../../../../com/google/inject/Module.html">Module</a></nobr>
476 </td>
477 <td class="jd-linkcol" width="100%"><nobr>
478 <span class="sympad"><a href="../../../../com/google/inject/util/Modules.html#combine(java.lang.Iterable<? extends com.google.inject.Module>)">combine</a></span>(Iterable&lt;?&nbsp;extends&nbsp;<a href="../../../../com/google/inject/Module.html">Module</a>&gt; modules)</nobr>
479
480 <div class="jd-descrdiv">Returns a new module that installs all of <code>modules</code>.</div>
481
482 </td></tr>
483
484
485
486 <tr class="alt-color api apilevel-Guice_2.0" >
487 <td class="jd-typecol"><nobr>
488
489
490
491 static
492
493 <a href="../../../../com/google/inject/util/Modules.OverriddenModuleBuilder.html">Modules.OverriddenModuleBuilder</a></nobr>
494 </td>
495 <td class="jd-linkcol" width="100%"><nobr>
496 <span class="sympad"><a href="../../../../com/google/inject/util/Modules.html#override(com.google.inject.Module...)">override</a></span>(<a href="../../../../com/google/inject/Module.html">Module...</a> modules)</nobr>
497
498 <div class="jd-descrdiv">Returns a builder that creates a module that overlays override modules over the given
499 modules.</div>
500
501 </td></tr>
502
503
504
505 <tr class=" api apilevel-Guice_2.0" >
506 <td class="jd-typecol"><nobr>
507
508
509
510 static
511
512 <a href="../../../../com/google/inject/util/Modules.OverriddenModuleBuilder.html">Modules.OverriddenModuleBuilder</a></nobr>
513 </td>
514 <td class="jd-linkcol" width="100%"><nobr>
515 <span class="sympad"><a href="../../../../com/google/inject/util/Modules.html#override(java.lang.Iterable<? extends com.google.inject.Module>)">override</a></span>(Iterable&lt;?&nbsp;extends&nbsp;<a href="../../../../com/google/inject/Module.html">Module</a>&gt; modules)</nobr>
516
517 <div class="jd-descrdiv">Returns a builder that creates a module that overlays override modules over the given
518 modules.</div>
519
520 </td></tr>
521
522
523
524</table>
525
526
527
528
529
530
531
532<!-- ========== METHOD SUMMARY =========== -->
533<table id="inhmethods" class="jd-sumtable"><tr><th>
534 <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
535 <div style="clear:left;">Inherited Methods</div></th></tr>
536
537
538<tr class="api apilevel-" >
539<td colspan="12">
540 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
541 ><img id="inherited-methods-java.lang.Object-trigger"
542 src="../../../../../javadoc/assets/images/triangle-closed.png"
543 class="jd-expando-trigger-img" /></a>
544From class
545
546 java.lang.Object
547
548<div id="inherited-methods-java.lang.Object">
549 <div id="inherited-methods-java.lang.Object-list"
550 class="jd-inheritedlinks">
551 </div>
552 <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
553 <table class="jd-sumtable-expando">
554
555
556
557
558 <tr class="alt-color api apilevel-" >
559 <td class="jd-typecol"><nobr>
560
561
562
563
564
565 Object</nobr>
566 </td>
567 <td class="jd-linkcol" width="100%"><nobr>
568 <span class="sympad">clone</span>()</nobr>
569
570 </td></tr>
571
572
573
574 <tr class=" api apilevel-" >
575 <td class="jd-typecol"><nobr>
576
577
578
579
580
581 boolean</nobr>
582 </td>
583 <td class="jd-linkcol" width="100%"><nobr>
584 <span class="sympad">equals</span>(Object arg0)</nobr>
585
586 </td></tr>
587
588
589
590 <tr class="alt-color api apilevel-" >
591 <td class="jd-typecol"><nobr>
592
593
594
595
596
597 void</nobr>
598 </td>
599 <td class="jd-linkcol" width="100%"><nobr>
600 <span class="sympad">finalize</span>()</nobr>
601
602 </td></tr>
603
604
605
606 <tr class=" api apilevel-" >
607 <td class="jd-typecol"><nobr>
608
609
610 final
611
612
613 Class&lt;?&gt;</nobr>
614 </td>
615 <td class="jd-linkcol" width="100%"><nobr>
616 <span class="sympad">getClass</span>()</nobr>
617
618 </td></tr>
619
620
621
622 <tr class="alt-color api apilevel-" >
623 <td class="jd-typecol"><nobr>
624
625
626
627
628
629 int</nobr>
630 </td>
631 <td class="jd-linkcol" width="100%"><nobr>
632 <span class="sympad">hashCode</span>()</nobr>
633
634 </td></tr>
635
636
637
638 <tr class=" api apilevel-" >
639 <td class="jd-typecol"><nobr>
640
641
642 final
643
644
645 void</nobr>
646 </td>
647 <td class="jd-linkcol" width="100%"><nobr>
648 <span class="sympad">notify</span>()</nobr>
649
650 </td></tr>
651
652
653
654 <tr class="alt-color api apilevel-" >
655 <td class="jd-typecol"><nobr>
656
657
658 final
659
660
661 void</nobr>
662 </td>
663 <td class="jd-linkcol" width="100%"><nobr>
664 <span class="sympad">notifyAll</span>()</nobr>
665
666 </td></tr>
667
668
669
670 <tr class=" api apilevel-" >
671 <td class="jd-typecol"><nobr>
672
673
674
675
676
677 String</nobr>
678 </td>
679 <td class="jd-linkcol" width="100%"><nobr>
680 <span class="sympad">toString</span>()</nobr>
681
682 </td></tr>
683
684
685
686 <tr class="alt-color api apilevel-" >
687 <td class="jd-typecol"><nobr>
688
689
690 final
691
692
693 void</nobr>
694 </td>
695 <td class="jd-linkcol" width="100%"><nobr>
696 <span class="sympad">wait</span>()</nobr>
697
698 </td></tr>
699
700
701
702 <tr class=" api apilevel-" >
703 <td class="jd-typecol"><nobr>
704
705
706 final
707
708
709 void</nobr>
710 </td>
711 <td class="jd-linkcol" width="100%"><nobr>
712 <span class="sympad">wait</span>(long arg0)</nobr>
713
714 </td></tr>
715
716
717
718 <tr class="alt-color api apilevel-" >
719 <td class="jd-typecol"><nobr>
720
721
722 final
723
724
725 void</nobr>
726 </td>
727 <td class="jd-linkcol" width="100%"><nobr>
728 <span class="sympad">wait</span>(long arg0, int arg1)</nobr>
729
730 </td></tr>
731
732
733</table>
734 </div>
735</div>
736</td></tr>
737
738
739</table>
740
741
742</div><!-- jd-descr (summary) -->
743
744<!-- Details -->
745
746
747
748
749
750
751
752
753<!-- XML Attributes -->
754
755
756<!-- Enum Values -->
757
758
759<!-- Constants -->
760
761
762<!-- ========= ENUM CONSTANTS DETAIL ======== -->
763<h2>Constants</h2>
764
765
766
767
768<A NAME="EMPTY_MODULE"></A>
769
770<div class="jd-details api apilevel-Guice_2.0">
771 <h4 class="jd-details-title">
772 <span class="normal">
773 public
774 static
775 final
776 <a href="../../../../com/google/inject/Module.html">Module</a>
777 </span>
778 EMPTY_MODULE
779 </h4>
780 <div class="api-level">
781
782
783 Since: <a href="../../../../guide/appendix/api-levels.html#levelGuice_2.0">API Level Guice_2.0</a>
784
785
786
787
788
789 </div>
790 <div class="jd-details-descr">
791
792 <div class="jd-tagdata jd-tagdescr"><p></p></div>
793
794
795 </div>
796</div>
797
798
799
800
801<!-- Fields -->
802
803
804<!-- Public ctors -->
805
806
807
808<!-- ========= CONSTRUCTOR DETAIL ======== -->
809<!-- Protected ctors -->
810
811
812
813<!-- ========= METHOD DETAIL ======== -->
814<!-- Public methdos -->
815
816<h2>Public Methods</h2>
817
818
819
820<A NAME="combine(com.google.inject.Module...)"></A>
821
822<div class="jd-details api apilevel-Guice_2.0">
823 <h4 class="jd-details-title">
824 <span class="normal">
825 public
826 static
827
828
829
830 <a href="../../../../com/google/inject/Module.html">Module</a>
831 </span>
832 <span class="sympad">combine</span>
833 <span class="normal">(<a href="../../../../com/google/inject/Module.html">Module...</a> modules)</span>
834 </h4>
835 <div class="api-level">
836 <div>
837
838 Since: <a href="../../../../guide/appendix/api-levels.html#levelGuice_2.0">API Level Guice_2.0</a>
839
840</div>
841
842
843
844 </div>
845 <div class="jd-details-descr">
846
847 <div class="jd-tagdata jd-tagdescr"><p>Returns a new module that installs all of <code>modules</code>.
848</p></div>
849
850 </div>
851</div>
852
853
854<A NAME="combine(java.lang.Iterable<? extends com.google.inject.Module>)"></A>
855
856<div class="jd-details api apilevel-Guice_2.0">
857 <h4 class="jd-details-title">
858 <span class="normal">
859 public
860 static
861
862
863
864 <a href="../../../../com/google/inject/Module.html">Module</a>
865 </span>
866 <span class="sympad">combine</span>
867 <span class="normal">(Iterable&lt;?&nbsp;extends&nbsp;<a href="../../../../com/google/inject/Module.html">Module</a>&gt; modules)</span>
868 </h4>
869 <div class="api-level">
870 <div>
871
872 Since: <a href="../../../../guide/appendix/api-levels.html#levelGuice_2.0">API Level Guice_2.0</a>
873
874</div>
875
876
877
878 </div>
879 <div class="jd-details-descr">
880
881 <div class="jd-tagdata jd-tagdescr"><p>Returns a new module that installs all of <code>modules</code>.
882</p></div>
883
884 </div>
885</div>
886
887
888<A NAME="override(com.google.inject.Module...)"></A>
889
890<div class="jd-details api apilevel-Guice_2.0">
891 <h4 class="jd-details-title">
892 <span class="normal">
893 public
894 static
895
896
897
898 <a href="../../../../com/google/inject/util/Modules.OverriddenModuleBuilder.html">Modules.OverriddenModuleBuilder</a>
899 </span>
900 <span class="sympad">override</span>
901 <span class="normal">(<a href="../../../../com/google/inject/Module.html">Module...</a> modules)</span>
902 </h4>
903 <div class="api-level">
904 <div>
905
906 Since: <a href="../../../../guide/appendix/api-levels.html#levelGuice_2.0">API Level Guice_2.0</a>
907
908</div>
909
910
911
912 </div>
913 <div class="jd-details-descr">
914
915 <div class="jd-tagdata jd-tagdescr"><p>Returns a builder that creates a module that overlays override modules over the given
916 modules. If a key is bound in both sets of modules, only the binding from the override modules
917 is kept. If a single <code><a href="../../../../com/google/inject/PrivateModule.html">PrivateModule</a></code> is supplied or all elements are from
918 a single <code><a href="../../../../com/google/inject/PrivateBinder.html">PrivateBinder</a></code>, then this will overwrite the private bindings.
919 Otherwise, private bindings will not be overwritten unless they are exposed.
920 This can be used to replace the bindings of a production module with test bindings:
921 <pre>
922 Module functionalTestModule
923 = Modules.override(new ProductionModule()).with(new TestModule());
924 </pre>
925
926 <p>Prefer to write smaller modules that can be reused and tested without overrides.</p></div>
927 <div class="jd-tagdata">
928 <h5 class="jd-tagtitle">Parameters</h5>
929 <table class="jd-tagtable">
930 <tr>
931 <th>modules</td>
932 <td>the modules whose bindings are open to be overridden
933</td>
934 </tr>
935 </table>
936 </div>
937
938 </div>
939</div>
940
941
942<A NAME="override(java.lang.Iterable<? extends com.google.inject.Module>)"></A>
943
944<div class="jd-details api apilevel-Guice_2.0">
945 <h4 class="jd-details-title">
946 <span class="normal">
947 public
948 static
949
950
951
952 <a href="../../../../com/google/inject/util/Modules.OverriddenModuleBuilder.html">Modules.OverriddenModuleBuilder</a>
953 </span>
954 <span class="sympad">override</span>
955 <span class="normal">(Iterable&lt;?&nbsp;extends&nbsp;<a href="../../../../com/google/inject/Module.html">Module</a>&gt; modules)</span>
956 </h4>
957 <div class="api-level">
958 <div>
959
960 Since: <a href="../../../../guide/appendix/api-levels.html#levelGuice_2.0">API Level Guice_2.0</a>
961
962</div>
963
964
965
966 </div>
967 <div class="jd-details-descr">
968
969 <div class="jd-tagdata jd-tagdescr"><p>Returns a builder that creates a module that overlays override modules over the given
970 modules. If a key is bound in both sets of modules, only the binding from the override modules
971 is kept. If a single <code><a href="../../../../com/google/inject/PrivateModule.html">PrivateModule</a></code> is supplied or all elements are from
972 a single <code><a href="../../../../com/google/inject/PrivateBinder.html">PrivateBinder</a></code>, then this will overwrite the private bindings.
973 Otherwise, private bindings will not be overwritten unless they are exposed.
974 This can be used to replace the bindings of a production module with test bindings:
975 <pre>
976 Module functionalTestModule
977 = Modules.override(getProductionModules()).with(getTestModules());
978 </pre>
979
980 <p>Prefer to write smaller modules that can be reused and tested without overrides.</p></div>
981 <div class="jd-tagdata">
982 <h5 class="jd-tagtitle">Parameters</h5>
983 <table class="jd-tagtable">
984 <tr>
985 <th>modules</td>
986 <td>the modules whose bindings are open to be overridden
987</td>
988 </tr>
989 </table>
990 </div>
991
992 </div>
993</div>
994
995
996
997
998
999<!-- ========= METHOD DETAIL ======== -->
1000
1001
1002
1003<!-- ========= END OF CLASS DATA ========= -->
1004<A NAME="navbar_top"></A>
1005
1006<div id="footer">
1007Generated by <a href="http://code.google.com/p/doclava/">Doclava</a>.
1008</div> <!-- end footer -->
1009
1010</div> <!-- jd-content -->
1011
1012</div><!-- end doc-content -->
1013
1014</div> <!-- end body-content -->
1015
1016<script type="text/javascript">
1017init(); /* initialize android-developer-docs.js */
1018</script>
1019
1020</body>
1021</html>