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_16) on Mon Oct 12 16:11:19 PDT 2009 --> 6 <TITLE> 7 Singleton 8 </TITLE> 9 10 <META NAME="keywords" CONTENT="javax.inject.Singleton 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="Singleton"; 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="../../javax/inject/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 38 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 43 </TR> 44 </TABLE> 45 </TD> 46 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 47 </EM> 48 </TD> 49 </TR> 50 51 <TR> 52 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 53 <A HREF="../../javax/inject/Scope.html" title="annotation in javax.inject"><B>PREV CLASS</B></A> 54 NEXT CLASS</FONT></TD> 55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 56 <A HREF="../../index.html?javax/inject/Singleton.html" target="_top"><B>FRAMES</B></A> 57 <A HREF="Singleton.html" target="_top"><B>NO FRAMES</B></A> 58 <SCRIPT type="text/javascript"> 59 <!-- 60 if(window==top) { 61 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); 62 } 63 //--> 64 </SCRIPT> 65 <NOSCRIPT> 66 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A> 67 </NOSCRIPT> 68 69 70 </FONT></TD> 71 </TR> 72 <TR> 73 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 74 SUMMARY: REQUIRED | OPTIONAL</FONT></TD> 75 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 76 DETAIL: ELEMENT</FONT></TD> 77 </TR> 78 </TABLE> 79 <A NAME="skip-navbar_top"></A> 80 <!-- ========= END OF TOP NAVBAR ========= --> 81 82 <HR> 83 <!-- ======== START OF CLASS DATA ======== --> 84 <H2> 85 <FONT SIZE="-1"> 86 javax.inject</FONT> 87 <BR> 88 Annotation Type Singleton</H2> 89 <HR> 90 <DL> 91 <DT><PRE><FONT SIZE="-1"><A HREF="../../javax/inject/Scope.html" title="annotation in javax.inject">@Scope</A> 92 @Documented 93 @Retention(value=RUNTIME) 94 </FONT>public @interface <B>Singleton</B></DL> 95 </PRE> 96 97 <P> 98 Identifies a type that the injector only instantiates once. Not inherited. 99 <P> 100 101 <P> 102 <DL> 103 <DT><B>See Also:</B><DD><A HREF="../../javax/inject/Scope.html" title="annotation in javax.inject"><CODE>@Scope</CODE></A></DL> 104 105 <P> 106 107 <P> 108 <!-- ========= END OF CLASS DATA ========= --> 109 <HR> 110 111 112 <!-- ======= START OF BOTTOM NAVBAR ====== --> 113 <A NAME="navbar_bottom"><!-- --></A> 114 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 115 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 116 <TR> 117 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 118 <A NAME="navbar_bottom_firstrow"><!-- --></A> 119 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 120 <TR ALIGN="center" VALIGN="top"> 121 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../javax/inject/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 122 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 123 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 124 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 125 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 126 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 127 </TR> 128 </TABLE> 129 </TD> 130 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 131 </EM> 132 </TD> 133 </TR> 134 135 <TR> 136 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 137 <A HREF="../../javax/inject/Scope.html" title="annotation in javax.inject"><B>PREV CLASS</B></A> 138 NEXT CLASS</FONT></TD> 139 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 140 <A HREF="../../index.html?javax/inject/Singleton.html" target="_top"><B>FRAMES</B></A> 141 <A HREF="Singleton.html" target="_top"><B>NO FRAMES</B></A> 142 <SCRIPT type="text/javascript"> 143 <!-- 144 if(window==top) { 145 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); 146 } 147 //--> 148 </SCRIPT> 149 <NOSCRIPT> 150 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A> 151 </NOSCRIPT> 152 153 154 </FONT></TD> 155 </TR> 156 <TR> 157 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 158 SUMMARY: REQUIRED | OPTIONAL</FONT></TD> 159 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 160 DETAIL: ELEMENT</FONT></TD> 161 </TR> 162 </TABLE> 163 <A NAME="skip-navbar_bottom"></A> 164 <!-- ======== END OF BOTTOM NAVBAR ======= --> 165 166 <HR> 167 <font size='-1'>Copyright (C) 2009 <a href='http://code.google.com/p/atinject/'>The JSR-330 Expert Group</a>. Licensed under the <a href='http://www.apache.org/licenses/LICENSE-2.0'>Apache License</a>, Version 2.0.</font> 168 </BODY> 169 </HTML> 170