blob: 2ab9c91224a4e68b1cae0ebbbe49a2e8b2db8d96 [file] [log] [blame]
crazybobleec731a752007-09-06 02:54:26 +00001<!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_07) on Wed Sep 05 19:50:23 PDT 2007 -->
6<TITLE>
7RequestScoped (Guice 1.0 API)
8</TITLE>
9
10<META NAME="keywords" CONTENT="com.google.inject.servlet.RequestScoped class">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17 parent.document.title="RequestScoped (Guice 1.0 API)";
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/inject/servlet/RequestParameters.html" title="annotation in com.google.inject.servlet"><B>PREV CLASS</B></A>&nbsp;
55&nbsp;<A HREF="../../../../com/google/inject/servlet/ServletModule.html" title="class in com.google.inject.servlet"><B>NEXT CLASS</B></A></FONT></TD>
56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 <A HREF="../../../../index.html?com/google/inject/servlet/RequestScoped.html" target="_top"><B>FRAMES</B></A> &nbsp;
58&nbsp;<A HREF="RequestScoped.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;REQUIRED&nbsp;|&nbsp;OPTIONAL</FONT></TD>
76<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77DETAIL:&nbsp;ELEMENT</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">
87com.google.inject.servlet</FONT>
88<BR>
89Annotation Type RequestScoped</H2>
90<HR>
91<DL>
92<DT><PRE><FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/annotation/Target.html" title="class or interface in java.lang.annotation">@Target</A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/annotation/Target.html#value()" title="class or interface in java.lang.annotation">value</A>={<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/annotation/ElementType.html#TYPE" title="class or interface in java.lang.annotation">TYPE</A>,<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/annotation/ElementType.html#METHOD" title="class or interface in java.lang.annotation">METHOD</A>})
93<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/annotation/Retention.html" title="class or interface in java.lang.annotation">@Retention</A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/annotation/Retention.html#value()" title="class or interface in java.lang.annotation">value</A>=<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/annotation/RetentionPolicy.html#RUNTIME" title="class or interface in java.lang.annotation">RUNTIME</A>)
94</FONT>public @interface <B>RequestScoped</B></DL>
95</PRE>
96
97<P>
98Apply this to implementation classes when you want one instance per request.
99<P>
100
101<P>
102
103<P>
104
105<P>
106<!-- ========= END OF CLASS DATA ========= -->
107<HR>
108
109
110<!-- ======= START OF BOTTOM NAVBAR ====== -->
111<A NAME="navbar_bottom"><!-- --></A>
112<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
113<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
114<TR>
115<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
116<A NAME="navbar_bottom_firstrow"><!-- --></A>
117<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
118 <TR ALIGN="center" VALIGN="top">
119 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
120 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
121 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
122 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
123 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
124 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
125 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
126 </TR>
127</TABLE>
128</TD>
129<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
130</EM>
131</TD>
132</TR>
133
134<TR>
135<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
136&nbsp;<A HREF="../../../../com/google/inject/servlet/RequestParameters.html" title="annotation in com.google.inject.servlet"><B>PREV CLASS</B></A>&nbsp;
137&nbsp;<A HREF="../../../../com/google/inject/servlet/ServletModule.html" title="class in com.google.inject.servlet"><B>NEXT CLASS</B></A></FONT></TD>
138<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
139 <A HREF="../../../../index.html?com/google/inject/servlet/RequestScoped.html" target="_top"><B>FRAMES</B></A> &nbsp;
140&nbsp;<A HREF="RequestScoped.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
141&nbsp;<SCRIPT type="text/javascript">
142 <!--
143 if(window==top) {
144 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
145 }
146 //-->
147</SCRIPT>
148<NOSCRIPT>
149 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
150</NOSCRIPT>
151
152
153</FONT></TD>
154</TR>
155<TR>
156<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
157 SUMMARY:&nbsp;REQUIRED&nbsp;|&nbsp;OPTIONAL</FONT></TD>
158<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
159DETAIL:&nbsp;ELEMENT</FONT></TD>
160</TR>
161</TABLE>
162<A NAME="skip-navbar_bottom"></A>
163<!-- ======== END OF BOTTOM NAVBAR ======= -->
164
165<HR>
166
167</BODY>
168</HTML>