Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
156 ashish 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.5.0_22) on Wed Jan 06 21:26:37 EST 2010 -->
6
<TITLE>
7
ImplicitProviderBinding
8
</TITLE>
9
 
10
<META NAME="keywords" CONTENT="com.google.gwt.inject.rebind.binding.ImplicitProviderBinding class">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    parent.document.title="ImplicitProviderBinding";
18
}
19
</SCRIPT>
20
<NOSCRIPT>
21
</NOSCRIPT>
22
 
23
</HEAD>
24
 
25
<BODY BGCOLOR="white" onload="windowTitle();">
26
 
27
 
28
<!-- ========= START OF TOP NAVBAR ======= -->
29
<A NAME="navbar_top"><!-- --></A>
30
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
32
<TR>
33
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34
<A NAME="navbar_top_firstrow"><!-- --></A>
35
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36
  <TR ALIGN="center" VALIGN="top">
37
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
38
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
39
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
44
  </TR>
45
</TABLE>
46
</TD>
47
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
48
</EM>
49
</TD>
50
</TR>
51
 
52
<TR>
53
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54
&nbsp;<A HREF="../../../../../../com/google/gwt/inject/rebind/binding/GinjectorBinding.html" title="class in com.google.gwt.inject.rebind.binding"><B>PREV CLASS</B></A>&nbsp;
55
&nbsp;<A HREF="../../../../../../com/google/gwt/inject/rebind/binding/Injectable.html" title="annotation in com.google.gwt.inject.rebind.binding"><B>NEXT CLASS</B></A></FONT></TD>
56
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57
  <A HREF="../../../../../../index.html?com/google/gwt/inject/rebind/binding/ImplicitProviderBinding.html" target="_top"><B>FRAMES</B></A>  &nbsp;
58
&nbsp;<A HREF="ImplicitProviderBinding.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
59
&nbsp;<SCRIPT type="text/javascript">
60
  <!--
61
  if(window==top) {
62
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
63
  }
64
  //-->
65
</SCRIPT>
66
<NOSCRIPT>
67
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
68
</NOSCRIPT>
69
 
70
 
71
</FONT></TD>
72
</TR>
73
<TR>
74
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
76
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
78
</TR>
79
</TABLE>
80
<A NAME="skip-navbar_top"></A>
81
<!-- ========= END OF TOP NAVBAR ========= -->
82
 
83
<HR>
84
<!-- ======== START OF CLASS DATA ======== -->
85
<H2>
86
<FONT SIZE="-1">
87
com.google.gwt.inject.rebind.binding</FONT>
88
<BR>
89
Class ImplicitProviderBinding</H2>
90
<PRE>
91
java.lang.Object
92
  <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>com.google.gwt.inject.rebind.binding.ImplicitProviderBinding</B>
93
</PRE>
94
<DL>
95
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../com/google/gwt/inject/rebind/binding/Binding.html" title="interface in com.google.gwt.inject.rebind.binding">Binding</A></DD>
96
</DL>
97
<HR>
98
<DL>
99
<DT><PRE>public class <B>ImplicitProviderBinding</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../../com/google/gwt/inject/rebind/binding/Binding.html" title="interface in com.google.gwt.inject.rebind.binding">Binding</A></DL>
100
</PRE>
101
 
102
<P>
103
Binding implementation for <code>Provider&lt;T&gt;</code> that just uses the binding
104
 to <code>T</code>.
105
<P>
106
 
107
<P>
108
<HR>
109
 
110
<P>
111
 
112
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
113
 
114
<A NAME="constructor_summary"><!-- --></A>
115
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
116
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
117
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
118
<B>Constructor Summary</B></FONT></TH>
119
</TR>
120
<TR BGCOLOR="white" CLASS="TableRowColor">
121
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/binding/ImplicitProviderBinding.html#ImplicitProviderBinding(com.google.gwt.inject.rebind.util.NameGenerator, com.google.gwt.inject.rebind.util.SourceWriteUtil)">ImplicitProviderBinding</A></B>(<A HREF="../../../../../../com/google/gwt/inject/rebind/util/NameGenerator.html" title="class in com.google.gwt.inject.rebind.util">NameGenerator</A>&nbsp;nameGenerator,
122
                        <A HREF="../../../../../../com/google/gwt/inject/rebind/util/SourceWriteUtil.html" title="class in com.google.gwt.inject.rebind.util">SourceWriteUtil</A>&nbsp;sourceWriteUtil)</CODE>
123
 
124
<BR>
125
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
126
</TR>
127
</TABLE>
128
&nbsp;
129
<!-- ========== METHOD SUMMARY =========== -->
130
 
131
<A NAME="method_summary"><!-- --></A>
132
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
133
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
134
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
135
<B>Method Summary</B></FONT></TH>
136
</TR>
137
<TR BGCOLOR="white" CLASS="TableRowColor">
138
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
139
<CODE>&nbsp;<A HREF="../../../../../../com/google/gwt/inject/rebind/binding/RequiredKeys.html" title="class in com.google.gwt.inject.rebind.binding">RequiredKeys</A></CODE></FONT></TD>
140
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/binding/ImplicitProviderBinding.html#getRequiredKeys()">getRequiredKeys</A></B>()</CODE>
141
 
142
<BR>
143
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
144
</TR>
145
<TR BGCOLOR="white" CLASS="TableRowColor">
146
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
147
<CODE>&nbsp;void</CODE></FONT></TD>
148
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/binding/ImplicitProviderBinding.html#setProviderKey(com.google.inject.Key)">setProviderKey</A></B>(<A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt;&nbsp;providerKey)</CODE>
149
 
150
<BR>
151
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
152
</TR>
153
<TR BGCOLOR="white" CLASS="TableRowColor">
154
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
155
<CODE>&nbsp;void</CODE></FONT></TD>
156
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/binding/ImplicitProviderBinding.html#writeCreatorMethods(com.google.gwt.user.rebind.SourceWriter, java.lang.String)">writeCreatorMethods</A></B>(com.google.gwt.user.rebind.SourceWriter&nbsp;writer,
157
                    java.lang.String&nbsp;creatorMethodSignature)</CODE>
158
 
159
<BR>
160
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the method necessary to create the binding's type to the writer.</TD>
161
</TR>
162
</TABLE>
163
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
164
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
165
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
166
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
167
</TR>
168
<TR BGCOLOR="white" CLASS="TableRowColor">
169
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
170
</TR>
171
</TABLE>
172
&nbsp;
173
<P>
174
 
175
<!-- ========= CONSTRUCTOR DETAIL ======== -->
176
 
177
<A NAME="constructor_detail"><!-- --></A>
178
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
179
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
180
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
181
<B>Constructor Detail</B></FONT></TH>
182
</TR>
183
</TABLE>
184
 
185
<A NAME="ImplicitProviderBinding(com.google.gwt.inject.rebind.util.NameGenerator, com.google.gwt.inject.rebind.util.SourceWriteUtil)"><!-- --></A><H3>
186
ImplicitProviderBinding</H3>
187
<PRE>
188
<FONT SIZE="-1"><A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Inject.html" title="class or interface in com.google.inject">@Inject</A>
189
</FONT>public <B>ImplicitProviderBinding</B>(<A HREF="../../../../../../com/google/gwt/inject/rebind/util/NameGenerator.html" title="class in com.google.gwt.inject.rebind.util">NameGenerator</A>&nbsp;nameGenerator,
190
                                      <A HREF="../../../../../../com/google/gwt/inject/rebind/util/SourceWriteUtil.html" title="class in com.google.gwt.inject.rebind.util">SourceWriteUtil</A>&nbsp;sourceWriteUtil)</PRE>
191
<DL>
192
</DL>
193
 
194
<!-- ============ METHOD DETAIL ========== -->
195
 
196
<A NAME="method_detail"><!-- --></A>
197
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
198
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
199
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
200
<B>Method Detail</B></FONT></TH>
201
</TR>
202
</TABLE>
203
 
204
<A NAME="setProviderKey(com.google.inject.Key)"><!-- --></A><H3>
205
setProviderKey</H3>
206
<PRE>
207
public void <B>setProviderKey</B>(<A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt;&nbsp;providerKey)</PRE>
208
<DL>
209
<DD><DL>
210
</DL>
211
</DD>
212
<DD><DL>
213
</DL>
214
</DD>
215
</DL>
216
<HR>
217
 
218
<A NAME="writeCreatorMethods(com.google.gwt.user.rebind.SourceWriter, java.lang.String)"><!-- --></A><H3>
219
writeCreatorMethods</H3>
220
<PRE>
221
public void <B>writeCreatorMethods</B>(com.google.gwt.user.rebind.SourceWriter&nbsp;writer,
222
                                java.lang.String&nbsp;creatorMethodSignature)</PRE>
223
<DL>
224
<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../com/google/gwt/inject/rebind/binding/Binding.html#writeCreatorMethods(com.google.gwt.user.rebind.SourceWriter, java.lang.String)">Binding</A></CODE></B></DD>
225
<DD>Writes the method necessary to create the binding's type to the writer.
226
 A method with the <code>creatorMethodSignature</code> <b>must</b> be written,
227
 other methods are optional.
228
<P>
229
<DD><DL>
230
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../com/google/gwt/inject/rebind/binding/Binding.html#writeCreatorMethods(com.google.gwt.user.rebind.SourceWriter, java.lang.String)">writeCreatorMethods</A></CODE> in interface <CODE><A HREF="../../../../../../com/google/gwt/inject/rebind/binding/Binding.html" title="interface in com.google.gwt.inject.rebind.binding">Binding</A></CODE></DL>
231
</DD>
232
<DD><DL>
233
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - writer that methods are written to<DD><CODE>creatorMethodSignature</CODE> - signature of method that needs to be created</DL>
234
</DD>
235
</DL>
236
<HR>
237
 
238
<A NAME="getRequiredKeys()"><!-- --></A><H3>
239
getRequiredKeys</H3>
240
<PRE>
241
public <A HREF="../../../../../../com/google/gwt/inject/rebind/binding/RequiredKeys.html" title="class in com.google.gwt.inject.rebind.binding">RequiredKeys</A> <B>getRequiredKeys</B>()</PRE>
242
<DL>
243
<DD><DL>
244
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../com/google/gwt/inject/rebind/binding/Binding.html#getRequiredKeys()">getRequiredKeys</A></CODE> in interface <CODE><A HREF="../../../../../../com/google/gwt/inject/rebind/binding/Binding.html" title="interface in com.google.gwt.inject.rebind.binding">Binding</A></CODE></DL>
245
</DD>
246
<DD><DL>
247
 
248
<DT><B>Returns:</B><DD>A tuple of two sets:  One set of keys that this binding requires.
249
     This set is used to find more classes that need to be bound. The
250
     second set contains all keys that have been optionally requested.</DL>
251
</DD>
252
</DL>
253
<!-- ========= END OF CLASS DATA ========= -->
254
<HR>
255
 
256
 
257
<!-- ======= START OF BOTTOM NAVBAR ====== -->
258
<A NAME="navbar_bottom"><!-- --></A>
259
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
260
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
261
<TR>
262
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
263
<A NAME="navbar_bottom_firstrow"><!-- --></A>
264
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
265
  <TR ALIGN="center" VALIGN="top">
266
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
267
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
268
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
269
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
270
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
271
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
272
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
273
  </TR>
274
</TABLE>
275
</TD>
276
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
277
</EM>
278
</TD>
279
</TR>
280
 
281
<TR>
282
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
283
&nbsp;<A HREF="../../../../../../com/google/gwt/inject/rebind/binding/GinjectorBinding.html" title="class in com.google.gwt.inject.rebind.binding"><B>PREV CLASS</B></A>&nbsp;
284
&nbsp;<A HREF="../../../../../../com/google/gwt/inject/rebind/binding/Injectable.html" title="annotation in com.google.gwt.inject.rebind.binding"><B>NEXT CLASS</B></A></FONT></TD>
285
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
286
  <A HREF="../../../../../../index.html?com/google/gwt/inject/rebind/binding/ImplicitProviderBinding.html" target="_top"><B>FRAMES</B></A>  &nbsp;
287
&nbsp;<A HREF="ImplicitProviderBinding.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
288
&nbsp;<SCRIPT type="text/javascript">
289
  <!--
290
  if(window==top) {
291
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
292
  }
293
  //-->
294
</SCRIPT>
295
<NOSCRIPT>
296
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
297
</NOSCRIPT>
298
 
299
 
300
</FONT></TD>
301
</TR>
302
<TR>
303
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
304
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
305
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
306
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
307
</TR>
308
</TABLE>
309
<A NAME="skip-navbar_bottom"></A>
310
<!-- ======== END OF BOTTOM NAVBAR ======= -->
311
 
312
<HR>
313
 
314
</BODY>
315
</HTML>