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> 7Named 8</TITLE> 9 10<META NAME="keywords" CONTENT="javax.inject.Named 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="Named"; 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/Inject.html" title="annotation in javax.inject"><B>PREV CLASS</B></A> 54 <A HREF="../../javax/inject/Provider.html" title="interface in javax.inject"><B>NEXT CLASS</B></A></FONT></TD> 55<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 56 <A HREF="../../index.html?javax/inject/Named.html" target="_top"><B>FRAMES</B></A> 57 <A HREF="Named.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 | <A HREF="#annotation_type_optional_element_summary">OPTIONAL</A></FONT></TD> 75<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 76DETAIL: <A HREF="#annotation_type_element_detail">ELEMENT</A></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"> 86javax.inject</FONT> 87<BR> 88Annotation Type Named</H2> 89<HR> 90<DL> 91<DT><PRE><FONT SIZE="-1"><A HREF="../../javax/inject/Qualifier.html" title="annotation in javax.inject">@Qualifier</A> 92@Documented 93@Retention(value=RUNTIME) 94</FONT>public @interface <B>Named</B></DL> 95</PRE> 96 97<P> 98String-based <A HREF="../../javax/inject/Qualifier.html" title="annotation in javax.inject">qualifier</A>. 99 100 <p>Example usage: 101 102 <pre> 103 public class Car { 104 @Inject <b>@Named("driver")</b> Seat driverSeat; 105 @Inject <b>@Named("passenger")</b> Seat passengerSeat; 106 ... 107 }</pre> 108<P> 109 110<P> 111<HR> 112 113<P> 114<!-- =========== ANNOTATION TYPE OPTIONAL MEMBER SUMMARY =========== --> 115 116<A NAME="annotation_type_optional_element_summary"><!-- --></A> 117<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 118<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 119<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 120<B>Optional Element Summary</B></FONT></TH> 121</TR> 122<TR BGCOLOR="white" CLASS="TableRowColor"> 123<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 124<CODE> java.lang.String</CODE></FONT></TD> 125<TD><CODE><B><A HREF="../../javax/inject/Named.html#value()">value</A></B></CODE> 126 127<BR> 128 The name.</TD> 129</TR> 130</TABLE> 131 132<P> 133<A NAME="value()"><!-- --></A><H3> 134value</H3> 135<PRE> 136public abstract java.lang.String <B>value</B></PRE> 137<DL> 138<DD>The name. 139<P> 140<DD><DL> 141</DL> 142</DD> 143<DD><DL> 144</DL> 145<DL> 146<DT><B>Default:</B><DD>""</DD> 147</DL> 148</DL> 149<!-- ========= END OF CLASS DATA ========= --> 150<HR> 151 152 153<!-- ======= START OF BOTTOM NAVBAR ====== --> 154<A NAME="navbar_bottom"><!-- --></A> 155<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 156<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 157<TR> 158<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 159<A NAME="navbar_bottom_firstrow"><!-- --></A> 160<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 161 <TR ALIGN="center" VALIGN="top"> 162 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../javax/inject/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 163 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 164 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 165 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 166 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 167 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 168 </TR> 169</TABLE> 170</TD> 171<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 172</EM> 173</TD> 174</TR> 175 176<TR> 177<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 178 <A HREF="../../javax/inject/Inject.html" title="annotation in javax.inject"><B>PREV CLASS</B></A> 179 <A HREF="../../javax/inject/Provider.html" title="interface in javax.inject"><B>NEXT CLASS</B></A></FONT></TD> 180<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 181 <A HREF="../../index.html?javax/inject/Named.html" target="_top"><B>FRAMES</B></A> 182 <A HREF="Named.html" target="_top"><B>NO FRAMES</B></A> 183 <SCRIPT type="text/javascript"> 184 <!-- 185 if(window==top) { 186 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); 187 } 188 //--> 189</SCRIPT> 190<NOSCRIPT> 191 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A> 192</NOSCRIPT> 193 194 195</FONT></TD> 196</TR> 197<TR> 198<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 199 SUMMARY: REQUIRED | <A HREF="#annotation_type_optional_element_summary">OPTIONAL</A></FONT></TD> 200<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 201DETAIL: <A HREF="#annotation_type_element_detail">ELEMENT</A></FONT></TD> 202</TR> 203</TABLE> 204<A NAME="skip-navbar_bottom"></A> 205<!-- ======== END OF BOTTOM NAVBAR ======= --> 206 207<HR> 208<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> 209</BODY> 210</HTML> 211