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