[14627] | 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.4.2_13) on Mon Oct 01 14:33:34 NZST 2007 -->
|
---|
| 6 | <TITLE>
|
---|
| 7 | ClasspathUtils.Delegate (Apache Ant API)
|
---|
| 8 | </TITLE>
|
---|
| 9 |
|
---|
| 10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.util.ClasspathUtils.Delegate 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="ClasspathUtils.Delegate (Apache Ant API)";
|
---|
| 18 | }
|
---|
| 19 | </SCRIPT>
|
---|
| 20 |
|
---|
| 21 | </HEAD>
|
---|
| 22 |
|
---|
| 23 | <BODY BGCOLOR="white" onload="windowTitle();">
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
| 27 | <A NAME="navbar_top"><!-- --></A>
|
---|
| 28 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
---|
| 29 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
| 30 | <TR>
|
---|
| 31 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
| 32 | <A NAME="navbar_top_firstrow"><!-- --></A>
|
---|
| 33 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
| 34 | <TR ALIGN="center" VALIGN="top">
|
---|
| 35 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
| 36 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
| 37 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
| 38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
| 39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
| 42 | </TR>
|
---|
| 43 | </TABLE>
|
---|
| 44 | </TD>
|
---|
| 45 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
| 46 | </EM>
|
---|
| 47 | </TD>
|
---|
| 48 | </TR>
|
---|
| 49 |
|
---|
| 50 | <TR>
|
---|
| 51 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 52 | <A HREF="../../../../../org/apache/tools/ant/util/ClasspathUtils.html" title="class in org.apache.tools.ant.util"><B>PREV CLASS</B></A>
|
---|
| 53 | <A HREF="../../../../../org/apache/tools/ant/util/CollectionUtils.html" title="class in org.apache.tools.ant.util"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
| 54 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 55 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
| 56 | <A HREF="ClasspathUtils.Delegate.html" target="_top"><B>NO FRAMES</B></A>
|
---|
| 57 | <SCRIPT type="text/javascript">
|
---|
| 58 | <!--
|
---|
| 59 | if(window==top) {
|
---|
| 60 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
| 61 | }
|
---|
| 62 | //-->
|
---|
| 63 | </SCRIPT>
|
---|
| 64 | <NOSCRIPT>
|
---|
| 65 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
| 66 | </NOSCRIPT>
|
---|
| 67 |
|
---|
| 68 | </FONT></TD>
|
---|
| 69 | </TR>
|
---|
| 70 | <TR>
|
---|
| 71 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 72 | SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
| 73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 74 | DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
| 75 | </TR>
|
---|
| 76 | </TABLE>
|
---|
| 77 | <A NAME="skip-navbar_top"></A>
|
---|
| 78 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
| 79 |
|
---|
| 80 | <HR>
|
---|
| 81 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
| 82 | <H2>
|
---|
| 83 | <FONT SIZE="-1">
|
---|
| 84 | org.apache.tools.ant.util</FONT>
|
---|
| 85 | <BR>
|
---|
| 86 | Class ClasspathUtils.Delegate</H2>
|
---|
| 87 | <PRE>
|
---|
| 88 | java.lang.Object
|
---|
| 89 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.util.ClasspathUtils.Delegate</B>
|
---|
| 90 | </PRE>
|
---|
| 91 | <DL>
|
---|
| 92 | <DT><B>Enclosing class:</B><DD><A HREF="../../../../../org/apache/tools/ant/util/ClasspathUtils.html" title="class in org.apache.tools.ant.util">ClasspathUtils</A></DD>
|
---|
| 93 | </DL>
|
---|
| 94 | <HR>
|
---|
| 95 | <DL>
|
---|
| 96 | <DT>public static class <B>ClasspathUtils.Delegate</B><DT>extends java.lang.Object</DL>
|
---|
| 97 |
|
---|
| 98 | <P>
|
---|
| 99 | Delegate that helps out any specific ProjectComponent that needs
|
---|
| 100 | dynamic classloading.
|
---|
| 101 |
|
---|
| 102 | <p>Ant ProjectComponents that need a to be able to dynamically load
|
---|
| 103 | Classes and instantiate them often expose the following ant syntax
|
---|
| 104 | sugar: </p>
|
---|
| 105 |
|
---|
| 106 | <ul><li> nested <classpath> </li>
|
---|
| 107 | <li> attribute @classpathref </li>
|
---|
| 108 | <li> attribute @classname </li></ul>
|
---|
| 109 |
|
---|
| 110 | <p> This class functions as a delegate handling the configuration
|
---|
| 111 | issues for this recuring pattern. Its usage pattern, as the name
|
---|
| 112 | suggests is delegation, not inheritance. </p>
|
---|
| 113 | <P>
|
---|
| 114 |
|
---|
| 115 | <P>
|
---|
| 116 | <DL>
|
---|
| 117 | <DT><B>Since:</B></DT>
|
---|
| 118 | <DD>Ant 1.6</DD>
|
---|
| 119 | </DL>
|
---|
| 120 | <HR>
|
---|
| 121 |
|
---|
| 122 | <P>
|
---|
| 123 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
| 124 |
|
---|
| 125 |
|
---|
| 126 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
| 127 |
|
---|
| 128 |
|
---|
| 129 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
| 130 |
|
---|
| 131 |
|
---|
| 132 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
| 133 |
|
---|
| 134 | <A NAME="method_summary"><!-- --></A>
|
---|
| 135 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 136 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 137 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
| 138 | <B>Method Summary</B></FONT></TD>
|
---|
| 139 | </TR>
|
---|
| 140 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 141 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 142 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A></CODE></FONT></TD>
|
---|
| 143 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/ClasspathUtils.Delegate.html#createClasspath()">createClasspath</A></B>()</CODE>
|
---|
| 144 |
|
---|
| 145 | <BR>
|
---|
| 146 | Delegate method handling the <classpath> tag.</TD>
|
---|
| 147 | </TR>
|
---|
| 148 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 149 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 150 | <CODE> java.lang.ClassLoader</CODE></FONT></TD>
|
---|
| 151 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/ClasspathUtils.Delegate.html#getClassLoader()">getClassLoader</A></B>()</CODE>
|
---|
| 152 |
|
---|
| 153 | <BR>
|
---|
| 154 | Finds or creates the classloader for this object.</TD>
|
---|
| 155 | </TR>
|
---|
| 156 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 157 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 158 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
| 159 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/ClasspathUtils.Delegate.html#getClassLoadId()">getClassLoadId</A></B>()</CODE>
|
---|
| 160 |
|
---|
| 161 | <BR>
|
---|
| 162 | Computes the loaderId based on the configuration of the component.</TD>
|
---|
| 163 | </TR>
|
---|
| 164 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 165 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 166 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A></CODE></FONT></TD>
|
---|
| 167 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/ClasspathUtils.Delegate.html#getClasspath()">getClasspath</A></B>()</CODE>
|
---|
| 168 |
|
---|
| 169 | <BR>
|
---|
| 170 | The classpath.</TD>
|
---|
| 171 | </TR>
|
---|
| 172 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 173 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 174 | <CODE> boolean</CODE></FONT></TD>
|
---|
| 175 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/ClasspathUtils.Delegate.html#isReverseLoader()">isReverseLoader</A></B>()</CODE>
|
---|
| 176 |
|
---|
| 177 | <BR>
|
---|
| 178 | Get the reverseLoader setting.</TD>
|
---|
| 179 | </TR>
|
---|
| 180 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 181 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 182 | <CODE> java.lang.Object</CODE></FONT></TD>
|
---|
| 183 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/ClasspathUtils.Delegate.html#newInstance()">newInstance</A></B>()</CODE>
|
---|
| 184 |
|
---|
| 185 | <BR>
|
---|
| 186 | Helper method obtaining a fresh instance of the class specified
|
---|
| 187 | in the @classname and using the specified classpath.</TD>
|
---|
| 188 | </TR>
|
---|
| 189 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 190 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 191 | <CODE> void</CODE></FONT></TD>
|
---|
| 192 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/ClasspathUtils.Delegate.html#setClassname(java.lang.String)">setClassname</A></B>(java.lang.String fcqn)</CODE>
|
---|
| 193 |
|
---|
| 194 | <BR>
|
---|
| 195 | Delegate method handling the @classname attribute.</TD>
|
---|
| 196 | </TR>
|
---|
| 197 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 198 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 199 | <CODE> void</CODE></FONT></TD>
|
---|
| 200 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/ClasspathUtils.Delegate.html#setClasspath(org.apache.tools.ant.types.Path)">setClasspath</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> classpath)</CODE>
|
---|
| 201 |
|
---|
| 202 | <BR>
|
---|
| 203 | This method is a Delegate method handling the @classpath attribute.</TD>
|
---|
| 204 | </TR>
|
---|
| 205 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 206 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 207 | <CODE> void</CODE></FONT></TD>
|
---|
| 208 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/ClasspathUtils.Delegate.html#setClasspathref(org.apache.tools.ant.types.Reference)">setClasspathref</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/Reference.html" title="class in org.apache.tools.ant.types">Reference</A> r)</CODE>
|
---|
| 209 |
|
---|
| 210 | <BR>
|
---|
| 211 | Delegate method handling the @classpathref attribute.</TD>
|
---|
| 212 | </TR>
|
---|
| 213 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 214 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 215 | <CODE> void</CODE></FONT></TD>
|
---|
| 216 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/ClasspathUtils.Delegate.html#setLoaderRef(org.apache.tools.ant.types.Reference)">setLoaderRef</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/Reference.html" title="class in org.apache.tools.ant.types">Reference</A> r)</CODE>
|
---|
| 217 |
|
---|
| 218 | <BR>
|
---|
| 219 | Sets the loaderRef.</TD>
|
---|
| 220 | </TR>
|
---|
| 221 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 222 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
| 223 | <CODE> void</CODE></FONT></TD>
|
---|
| 224 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/ClasspathUtils.Delegate.html#setReverseLoader(boolean)">setReverseLoader</A></B>(boolean reverseLoader)</CODE>
|
---|
| 225 |
|
---|
| 226 | <BR>
|
---|
| 227 | Delegate method handling the @reverseLoader attribute.</TD>
|
---|
| 228 | </TR>
|
---|
| 229 | </TABLE>
|
---|
| 230 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
| 231 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 232 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
| 233 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
| 234 | </TR>
|
---|
| 235 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
| 236 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
| 237 | </TR>
|
---|
| 238 | </TABLE>
|
---|
| 239 |
|
---|
| 240 | <P>
|
---|
| 241 |
|
---|
| 242 | <!-- ============ FIELD DETAIL =========== -->
|
---|
| 243 |
|
---|
| 244 |
|
---|
| 245 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
| 246 |
|
---|
| 247 |
|
---|
| 248 | <!-- ============ METHOD DETAIL ========== -->
|
---|
| 249 |
|
---|
| 250 | <A NAME="method_detail"><!-- --></A>
|
---|
| 251 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
| 252 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
| 253 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
| 254 | <B>Method Detail</B></FONT></TD>
|
---|
| 255 | </TR>
|
---|
| 256 | </TABLE>
|
---|
| 257 |
|
---|
| 258 | <A NAME="setClasspath(org.apache.tools.ant.types.Path)"><!-- --></A><H3>
|
---|
| 259 | setClasspath</H3>
|
---|
| 260 | <PRE>
|
---|
| 261 | public void <B>setClasspath</B>(<A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> classpath)</PRE>
|
---|
| 262 | <DL>
|
---|
| 263 | <DD>This method is a Delegate method handling the @classpath attribute.
|
---|
| 264 |
|
---|
| 265 | <p>This attribute can set a path to add to the classpath.</p>
|
---|
| 266 | <P>
|
---|
| 267 | <DD><DL>
|
---|
| 268 | <DT><B>Parameters:</B><DD><CODE>classpath</CODE> - the path to use for the classpath.</DL>
|
---|
| 269 | </DD>
|
---|
| 270 | </DL>
|
---|
| 271 | <HR>
|
---|
| 272 |
|
---|
| 273 | <A NAME="createClasspath()"><!-- --></A><H3>
|
---|
| 274 | createClasspath</H3>
|
---|
| 275 | <PRE>
|
---|
| 276 | public <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> <B>createClasspath</B>()</PRE>
|
---|
| 277 | <DL>
|
---|
| 278 | <DD>Delegate method handling the <classpath> tag.
|
---|
| 279 |
|
---|
| 280 | <p>This nested path-like structure can set a path to add to the
|
---|
| 281 | classpath.</p>
|
---|
| 282 | <P>
|
---|
| 283 | <DD><DL>
|
---|
| 284 |
|
---|
| 285 | <DT><B>Returns:</B><DD>the created path.</DL>
|
---|
| 286 | </DD>
|
---|
| 287 | </DL>
|
---|
| 288 | <HR>
|
---|
| 289 |
|
---|
| 290 | <A NAME="setClassname(java.lang.String)"><!-- --></A><H3>
|
---|
| 291 | setClassname</H3>
|
---|
| 292 | <PRE>
|
---|
| 293 | public void <B>setClassname</B>(java.lang.String fcqn)</PRE>
|
---|
| 294 | <DL>
|
---|
| 295 | <DD>Delegate method handling the @classname attribute.
|
---|
| 296 |
|
---|
| 297 | <p>This attribute sets the full qualified class name of the class
|
---|
| 298 | to load and instantiate.</p>
|
---|
| 299 | <P>
|
---|
| 300 | <DD><DL>
|
---|
| 301 | <DT><B>Parameters:</B><DD><CODE>fcqn</CODE> - the name of the class to load.</DL>
|
---|
| 302 | </DD>
|
---|
| 303 | </DL>
|
---|
| 304 | <HR>
|
---|
| 305 |
|
---|
| 306 | <A NAME="setClasspathref(org.apache.tools.ant.types.Reference)"><!-- --></A><H3>
|
---|
| 307 | setClasspathref</H3>
|
---|
| 308 | <PRE>
|
---|
| 309 | public void <B>setClasspathref</B>(<A HREF="../../../../../org/apache/tools/ant/types/Reference.html" title="class in org.apache.tools.ant.types">Reference</A> r)</PRE>
|
---|
| 310 | <DL>
|
---|
| 311 | <DD>Delegate method handling the @classpathref attribute.
|
---|
| 312 |
|
---|
| 313 | <p>This attribute can add a referenced path-like structure to the
|
---|
| 314 | classpath.</p>
|
---|
| 315 | <P>
|
---|
| 316 | <DD><DL>
|
---|
| 317 | <DT><B>Parameters:</B><DD><CODE>r</CODE> - the reference to the classpath.</DL>
|
---|
| 318 | </DD>
|
---|
| 319 | </DL>
|
---|
| 320 | <HR>
|
---|
| 321 |
|
---|
| 322 | <A NAME="setReverseLoader(boolean)"><!-- --></A><H3>
|
---|
| 323 | setReverseLoader</H3>
|
---|
| 324 | <PRE>
|
---|
| 325 | public void <B>setReverseLoader</B>(boolean reverseLoader)</PRE>
|
---|
| 326 | <DL>
|
---|
| 327 | <DD>Delegate method handling the @reverseLoader attribute.
|
---|
| 328 |
|
---|
| 329 | <p>This attribute can set a boolean indicating that the used
|
---|
| 330 | classloader should NOT follow the classical parent-first scheme.
|
---|
| 331 | </p>
|
---|
| 332 |
|
---|
| 333 | <p>By default this is supposed to be false.</p>
|
---|
| 334 |
|
---|
| 335 | <p>Caution: this behaviour is contradictory to the normal way
|
---|
| 336 | classloaders work. Do not let your ProjectComponent use it if
|
---|
| 337 | you are not really sure.</p>
|
---|
| 338 | <P>
|
---|
| 339 | <DD><DL>
|
---|
| 340 | <DT><B>Parameters:</B><DD><CODE>reverseLoader</CODE> - if true reverse the order of looking up a class.</DL>
|
---|
| 341 | </DD>
|
---|
| 342 | </DL>
|
---|
| 343 | <HR>
|
---|
| 344 |
|
---|
| 345 | <A NAME="setLoaderRef(org.apache.tools.ant.types.Reference)"><!-- --></A><H3>
|
---|
| 346 | setLoaderRef</H3>
|
---|
| 347 | <PRE>
|
---|
| 348 | public void <B>setLoaderRef</B>(<A HREF="../../../../../org/apache/tools/ant/types/Reference.html" title="class in org.apache.tools.ant.types">Reference</A> r)</PRE>
|
---|
| 349 | <DL>
|
---|
| 350 | <DD>Sets the loaderRef.
|
---|
| 351 | <P>
|
---|
| 352 | <DD><DL>
|
---|
| 353 | <DT><B>Parameters:</B><DD><CODE>r</CODE> - the reference to the loader.</DL>
|
---|
| 354 | </DD>
|
---|
| 355 | </DL>
|
---|
| 356 | <HR>
|
---|
| 357 |
|
---|
| 358 | <A NAME="getClassLoader()"><!-- --></A><H3>
|
---|
| 359 | getClassLoader</H3>
|
---|
| 360 | <PRE>
|
---|
| 361 | public java.lang.ClassLoader <B>getClassLoader</B>()</PRE>
|
---|
| 362 | <DL>
|
---|
| 363 | <DD>Finds or creates the classloader for this object.
|
---|
| 364 | <P>
|
---|
| 365 | <DD><DL>
|
---|
| 366 |
|
---|
| 367 | <DT><B>Returns:</B><DD>The class loader.</DL>
|
---|
| 368 | </DD>
|
---|
| 369 | </DL>
|
---|
| 370 | <HR>
|
---|
| 371 |
|
---|
| 372 | <A NAME="getClassLoadId()"><!-- --></A><H3>
|
---|
| 373 | getClassLoadId</H3>
|
---|
| 374 | <PRE>
|
---|
| 375 | public java.lang.String <B>getClassLoadId</B>()</PRE>
|
---|
| 376 | <DL>
|
---|
| 377 | <DD>Computes the loaderId based on the configuration of the component.
|
---|
| 378 | <P>
|
---|
| 379 | <DD><DL>
|
---|
| 380 |
|
---|
| 381 | <DT><B>Returns:</B><DD>a loader identifier.</DL>
|
---|
| 382 | </DD>
|
---|
| 383 | </DL>
|
---|
| 384 | <HR>
|
---|
| 385 |
|
---|
| 386 | <A NAME="newInstance()"><!-- --></A><H3>
|
---|
| 387 | newInstance</H3>
|
---|
| 388 | <PRE>
|
---|
| 389 | public java.lang.Object <B>newInstance</B>()</PRE>
|
---|
| 390 | <DL>
|
---|
| 391 | <DD>Helper method obtaining a fresh instance of the class specified
|
---|
| 392 | in the @classname and using the specified classpath.
|
---|
| 393 | <P>
|
---|
| 394 | <DD><DL>
|
---|
| 395 |
|
---|
| 396 | <DT><B>Returns:</B><DD>the fresh instantiated object.</DL>
|
---|
| 397 | </DD>
|
---|
| 398 | </DL>
|
---|
| 399 | <HR>
|
---|
| 400 |
|
---|
| 401 | <A NAME="getClasspath()"><!-- --></A><H3>
|
---|
| 402 | getClasspath</H3>
|
---|
| 403 | <PRE>
|
---|
| 404 | public <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> <B>getClasspath</B>()</PRE>
|
---|
| 405 | <DL>
|
---|
| 406 | <DD>The classpath.
|
---|
| 407 | <P>
|
---|
| 408 | <DD><DL>
|
---|
| 409 |
|
---|
| 410 | <DT><B>Returns:</B><DD>the classpath.</DL>
|
---|
| 411 | </DD>
|
---|
| 412 | </DL>
|
---|
| 413 | <HR>
|
---|
| 414 |
|
---|
| 415 | <A NAME="isReverseLoader()"><!-- --></A><H3>
|
---|
| 416 | isReverseLoader</H3>
|
---|
| 417 | <PRE>
|
---|
| 418 | public boolean <B>isReverseLoader</B>()</PRE>
|
---|
| 419 | <DL>
|
---|
| 420 | <DD>Get the reverseLoader setting.
|
---|
| 421 | <P>
|
---|
| 422 | <DD><DL>
|
---|
| 423 |
|
---|
| 424 | <DT><B>Returns:</B><DD>true if looking up in reverse order.</DL>
|
---|
| 425 | </DD>
|
---|
| 426 | </DL>
|
---|
| 427 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
| 428 | <HR>
|
---|
| 429 |
|
---|
| 430 |
|
---|
| 431 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
| 432 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
| 433 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
| 434 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
| 435 | <TR>
|
---|
| 436 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
| 437 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
| 438 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
| 439 | <TR ALIGN="center" VALIGN="top">
|
---|
| 440 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
| 441 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
| 442 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
| 443 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
| 444 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
| 445 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
| 446 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
| 447 | </TR>
|
---|
| 448 | </TABLE>
|
---|
| 449 | </TD>
|
---|
| 450 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
| 451 | </EM>
|
---|
| 452 | </TD>
|
---|
| 453 | </TR>
|
---|
| 454 |
|
---|
| 455 | <TR>
|
---|
| 456 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 457 | <A HREF="../../../../../org/apache/tools/ant/util/ClasspathUtils.html" title="class in org.apache.tools.ant.util"><B>PREV CLASS</B></A>
|
---|
| 458 | <A HREF="../../../../../org/apache/tools/ant/util/CollectionUtils.html" title="class in org.apache.tools.ant.util"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
| 459 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
| 460 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
| 461 | <A HREF="ClasspathUtils.Delegate.html" target="_top"><B>NO FRAMES</B></A>
|
---|
| 462 | <SCRIPT type="text/javascript">
|
---|
| 463 | <!--
|
---|
| 464 | if(window==top) {
|
---|
| 465 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
| 466 | }
|
---|
| 467 | //-->
|
---|
| 468 | </SCRIPT>
|
---|
| 469 | <NOSCRIPT>
|
---|
| 470 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
| 471 | </NOSCRIPT>
|
---|
| 472 |
|
---|
| 473 | </FONT></TD>
|
---|
| 474 | </TR>
|
---|
| 475 | <TR>
|
---|
| 476 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 477 | SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
| 478 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
| 479 | DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
| 480 | </TR>
|
---|
| 481 | </TABLE>
|
---|
| 482 | <A NAME="skip-navbar_bottom"></A>
|
---|
| 483 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
| 484 |
|
---|
| 485 | <HR>
|
---|
| 486 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
| 487 | </BODY>
|
---|
| 488 | </HTML>
|
---|