Subversion Repositories SmartDukaan

Rev

Rev 156 | Details | Compare with Previous | 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
GinjectorBinding
8
</TITLE>
9
 
10
<META NAME="keywords" CONTENT="com.google.gwt.inject.rebind.binding.GinjectorBinding 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="GinjectorBinding";
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/CallGwtDotCreateBinding.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/ImplicitProviderBinding.html" title="class 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/GinjectorBinding.html" target="_top"><B>FRAMES</B></A>  &nbsp;
58
&nbsp;<A HREF="GinjectorBinding.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 GinjectorBinding</H2>
90
<PRE>
91
java.lang.Object
92
  <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>com.google.gwt.inject.rebind.binding.GinjectorBinding</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>GinjectorBinding</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
Simple binding that allows injection of the ginjector.
104
<P>
105
 
106
<P>
107
<HR>
108
 
109
<P>
110
 
111
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
112
 
113
<A NAME="constructor_summary"><!-- --></A>
114
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
115
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
116
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
117
<B>Constructor Summary</B></FONT></TH>
118
</TR>
119
<TR BGCOLOR="white" CLASS="TableRowColor">
120
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/binding/GinjectorBinding.html#GinjectorBinding(com.google.gwt.inject.rebind.util.SourceWriteUtil)">GinjectorBinding</A></B>(<A HREF="../../../../../../com/google/gwt/inject/rebind/util/SourceWriteUtil.html" title="class in com.google.gwt.inject.rebind.util">SourceWriteUtil</A>&nbsp;sourceWriteUtil)</CODE>
121
 
122
<BR>
123
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
124
</TR>
125
</TABLE>
126
&nbsp;
127
<!-- ========== METHOD SUMMARY =========== -->
128
 
129
<A NAME="method_summary"><!-- --></A>
130
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
131
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
132
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
133
<B>Method Summary</B></FONT></TH>
134
</TR>
135
<TR BGCOLOR="white" CLASS="TableRowColor">
136
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
137
<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>
138
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/binding/GinjectorBinding.html#getRequiredKeys()">getRequiredKeys</A></B>()</CODE>
139
 
140
<BR>
141
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
142
</TR>
143
<TR BGCOLOR="white" CLASS="TableRowColor">
144
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
145
<CODE>&nbsp;void</CODE></FONT></TD>
146
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/binding/GinjectorBinding.html#writeCreatorMethods(com.google.gwt.user.rebind.SourceWriter, java.lang.String)">writeCreatorMethods</A></B>(com.google.gwt.user.rebind.SourceWriter&nbsp;writer,
147
                    java.lang.String&nbsp;creatorMethodSignature)</CODE>
148
 
149
<BR>
150
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the method necessary to create the binding's type to the writer.</TD>
151
</TR>
152
</TABLE>
153
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
154
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
155
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
156
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
157
</TR>
158
<TR BGCOLOR="white" CLASS="TableRowColor">
159
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
160
</TR>
161
</TABLE>
162
&nbsp;
163
<P>
164
 
165
<!-- ========= CONSTRUCTOR DETAIL ======== -->
166
 
167
<A NAME="constructor_detail"><!-- --></A>
168
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
169
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
170
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
171
<B>Constructor Detail</B></FONT></TH>
172
</TR>
173
</TABLE>
174
 
175
<A NAME="GinjectorBinding(com.google.gwt.inject.rebind.util.SourceWriteUtil)"><!-- --></A><H3>
176
GinjectorBinding</H3>
177
<PRE>
178
<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>
179
</FONT>public <B>GinjectorBinding</B>(<A HREF="../../../../../../com/google/gwt/inject/rebind/util/SourceWriteUtil.html" title="class in com.google.gwt.inject.rebind.util">SourceWriteUtil</A>&nbsp;sourceWriteUtil)</PRE>
180
<DL>
181
</DL>
182
 
183
<!-- ============ METHOD DETAIL ========== -->
184
 
185
<A NAME="method_detail"><!-- --></A>
186
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
187
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
188
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
189
<B>Method Detail</B></FONT></TH>
190
</TR>
191
</TABLE>
192
 
193
<A NAME="writeCreatorMethods(com.google.gwt.user.rebind.SourceWriter, java.lang.String)"><!-- --></A><H3>
194
writeCreatorMethods</H3>
195
<PRE>
196
public void <B>writeCreatorMethods</B>(com.google.gwt.user.rebind.SourceWriter&nbsp;writer,
197
                                java.lang.String&nbsp;creatorMethodSignature)</PRE>
198
<DL>
199
<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>
200
<DD>Writes the method necessary to create the binding's type to the writer.
201
 A method with the <code>creatorMethodSignature</code> <b>must</b> be written,
202
 other methods are optional.
203
<P>
204
<DD><DL>
205
<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>
206
</DD>
207
<DD><DL>
208
<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>
209
</DD>
210
</DL>
211
<HR>
212
 
213
<A NAME="getRequiredKeys()"><!-- --></A><H3>
214
getRequiredKeys</H3>
215
<PRE>
216
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>
217
<DL>
218
<DD><DL>
219
<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>
220
</DD>
221
<DD><DL>
222
 
223
<DT><B>Returns:</B><DD>A tuple of two sets:  One set of keys that this binding requires.
224
     This set is used to find more classes that need to be bound. The
225
     second set contains all keys that have been optionally requested.</DL>
226
</DD>
227
</DL>
228
<!-- ========= END OF CLASS DATA ========= -->
229
<HR>
230
 
231
 
232
<!-- ======= START OF BOTTOM NAVBAR ====== -->
233
<A NAME="navbar_bottom"><!-- --></A>
234
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
235
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
236
<TR>
237
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
238
<A NAME="navbar_bottom_firstrow"><!-- --></A>
239
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
240
  <TR ALIGN="center" VALIGN="top">
241
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
242
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
243
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
244
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
245
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
246
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
247
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
248
  </TR>
249
</TABLE>
250
</TD>
251
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
252
</EM>
253
</TD>
254
</TR>
255
 
256
<TR>
257
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
258
&nbsp;<A HREF="../../../../../../com/google/gwt/inject/rebind/binding/CallGwtDotCreateBinding.html" title="class in com.google.gwt.inject.rebind.binding"><B>PREV CLASS</B></A>&nbsp;
259
&nbsp;<A HREF="../../../../../../com/google/gwt/inject/rebind/binding/ImplicitProviderBinding.html" title="class in com.google.gwt.inject.rebind.binding"><B>NEXT CLASS</B></A></FONT></TD>
260
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
261
  <A HREF="../../../../../../index.html?com/google/gwt/inject/rebind/binding/GinjectorBinding.html" target="_top"><B>FRAMES</B></A>  &nbsp;
262
&nbsp;<A HREF="GinjectorBinding.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
263
&nbsp;<SCRIPT type="text/javascript">
264
  <!--
265
  if(window==top) {
266
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
267
  }
268
  //-->
269
</SCRIPT>
270
<NOSCRIPT>
271
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
272
</NOSCRIPT>
273
 
274
 
275
</FONT></TD>
276
</TR>
277
<TR>
278
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
279
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
280
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
281
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
282
</TR>
283
</TABLE>
284
<A NAME="skip-navbar_bottom"></A>
285
<!-- ======== END OF BOTTOM NAVBAR ======= -->
286
 
287
<HR>
288
 
289
</BODY>
290
</HTML>