PageRenderTime 65ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html

#
HTML | 802 lines | 694 code | 94 blank | 14 comment | 0 complexity | d3a54188cad7da26721671afada82407 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  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_14) on Tue Jul 22 07:13:50 GMT-08:00 2008 -->
  6. <TITLE>
  7. ClassManagerImpl (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.bsh.classpath.ClassManagerImpl class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
  11. <NOSCRIPT>
  12. </NOSCRIPT>
  13. </HEAD>
  14. <BODY BGCOLOR="white" >
  15. <!-- ========= START OF TOP NAVBAR ======= -->
  16. <A NAME="navbar_top"><!-- --></A>
  17. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  18. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  19. <TR>
  20. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  21. <A NAME="navbar_top_firstrow"><!-- --></A>
  22. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  23. <TR ALIGN="center" VALIGN="top">
  24. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  25. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  26. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  27. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ClassManagerImpl.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  32. </TR>
  33. </TABLE>
  34. </TD>
  35. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  36. </EM>
  37. </TD>
  38. </TR>
  39. <TR>
  40. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  41. &nbsp;<A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/BshClassPath.MappingFeedback.html" title="interface in org.gjt.sp.jedit.bsh.classpath"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassPathListener.html" title="interface in org.gjt.sp.jedit.bsh.classpath"><B>NEXT CLASS</B></A></FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../../../../index.html?org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="ClassManagerImpl.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  46. &nbsp;
  47. <NOSCRIPT>
  48. <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  49. </NOSCRIPT>
  50. </FONT></TD>
  51. </TR>
  52. <TR>
  53. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  54. SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_org.gjt.sp.jedit.bsh.BshClassManager">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.gjt.sp.jedit.bsh.BshClassManager">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  55. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  56. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  57. </TR>
  58. </TABLE>
  59. <A NAME="skip-navbar_top"></A>
  60. <!-- ========= END OF TOP NAVBAR ========= -->
  61. <HR>
  62. <!-- ======== START OF CLASS DATA ======== -->
  63. <H2>
  64. <FONT SIZE="-1">
  65. org.gjt.sp.jedit.bsh.classpath</FONT>
  66. <BR>
  67. Class ClassManagerImpl</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">org.gjt.sp.jedit.bsh.BshClassManager</A>
  71. <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.bsh.classpath.ClassManagerImpl</B>
  72. </PRE>
  73. <HR>
  74. <DL>
  75. <DT><PRE>public class <B>ClassManagerImpl</B><DT>extends <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></DL>
  76. </PRE>
  77. <P>
  78. <pre>
  79. Manage all classloading in BeanShell.
  80. Allows classpath extension and class file reloading.
  81. This class holds the implementation of the BshClassManager so that it
  82. can be separated from the core package.
  83. This class currently relies on 1.2 for BshClassLoader and weak references.
  84. Is there a workaround for weak refs? If so we could make this work
  85. with 1.1 by supplying our own classloader code...
  86. See "http://www.beanshell.org/manual/classloading.html" for details
  87. on the bsh classloader architecture.
  88. Bsh has a multi-tiered class loading architecture. No class loader is
  89. created unless/until a class is generated, the classpath is modified,
  90. or a class is reloaded.
  91. Note: we may need some synchronization in here
  92. Note on jdk1.2 dependency:
  93. We are forced to use weak references here to accomodate all of the
  94. fleeting namespace listeners. (NameSpaces must be informed if the class
  95. space changes so that they can un-cache names). I had the interesting
  96. thought that a way around this would be to implement BeanShell's own
  97. garbage collector... Then I came to my senses and said - screw it,
  98. class re-loading will require 1.2.
  99. ---------------------
  100. Classloading precedence:
  101. in-script evaluated class (scripted class)
  102. in-script added / modified classpath
  103. optionally, external classloader
  104. optionally, thread context classloader
  105. plain Class.forName()
  106. source class (.java file in classpath)
  107. </pre>
  108. <P>
  109. <P>
  110. <HR>
  111. <P>
  112. <!-- ======== NESTED CLASS SUMMARY ======== -->
  113. <A NAME="nested_class_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>Nested Class Summary</B></FONT></TH>
  118. </TR>
  119. </TABLE>
  120. &nbsp;<A NAME="nested_classes_inherited_from_class_org.gjt.sp.jedit.bsh.BshClassManager"><!-- --></A>
  121. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  122. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  123. <TH ALIGN="left"><B>Nested classes/interfaces inherited from class org.gjt.sp.jedit.bsh.<A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></B></TH>
  124. </TR>
  125. <TR BGCOLOR="white" CLASS="TableRowColor">
  126. <TD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.Listener.html" title="interface in org.gjt.sp.jedit.bsh">BshClassManager.Listener</A></CODE></TD>
  127. </TR>
  128. </TABLE>
  129. &nbsp;
  130. <!-- =========== FIELD SUMMARY =========== -->
  131. <A NAME="field_summary"><!-- --></A>
  132. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  133. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  134. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  135. <B>Field Summary</B></FONT></TH>
  136. </TR>
  137. </TABLE>
  138. &nbsp;<A NAME="fields_inherited_from_class_org.gjt.sp.jedit.bsh.BshClassManager"><!-- --></A>
  139. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  140. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  141. <TH ALIGN="left"><B>Fields inherited from class org.gjt.sp.jedit.bsh.<A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></B></TH>
  142. </TR>
  143. <TR BGCOLOR="white" CLASS="TableRowColor">
  144. <TD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#absoluteClassCache">absoluteClassCache</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#absoluteNonClasses">absoluteNonClasses</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#definingClasses">definingClasses</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#definingClassesBaseNames">definingClassesBaseNames</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#externalClassLoader">externalClassLoader</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#resolvedObjectMethods">resolvedObjectMethods</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#resolvedStaticMethods">resolvedStaticMethods</A></CODE></TD>
  145. </TR>
  146. </TABLE>
  147. &nbsp;
  148. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  149. <A NAME="constructor_summary"><!-- --></A>
  150. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  151. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  152. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  153. <B>Constructor Summary</B></FONT></TH>
  154. </TR>
  155. <TR BGCOLOR="white" CLASS="TableRowColor">
  156. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#ClassManagerImpl()">ClassManagerImpl</A></B>()</CODE>
  157. <BR>
  158. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Used by BshClassManager singleton constructor</TD>
  159. </TR>
  160. </TABLE>
  161. &nbsp;
  162. <!-- ========== METHOD SUMMARY =========== -->
  163. <A NAME="method_summary"><!-- --></A>
  164. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  165. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  166. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  167. <B>Method Summary</B></FONT></TH>
  168. </TR>
  169. <TR BGCOLOR="white" CLASS="TableRowColor">
  170. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  171. <CODE>&nbsp;void</CODE></FONT></TD>
  172. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#addClassPath(java.net.URL)">addClassPath</A></B>(java.net.URL&nbsp;path)</CODE>
  173. <BR>
  174. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  175. </TR>
  176. <TR BGCOLOR="white" CLASS="TableRowColor">
  177. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  178. <CODE>&nbsp;void</CODE></FONT></TD>
  179. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#addListener(org.gjt.sp.jedit.bsh.BshClassManager.Listener)">addListener</A></B>(<A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.Listener.html" title="interface in org.gjt.sp.jedit.bsh">BshClassManager.Listener</A>&nbsp;l)</CODE>
  180. <BR>
  181. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  182. </TR>
  183. <TR BGCOLOR="white" CLASS="TableRowColor">
  184. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  185. <CODE>&nbsp;java.lang.Class</CODE></FONT></TD>
  186. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#classForName(java.lang.String)">classForName</A></B>(java.lang.String&nbsp;name)</CODE>
  187. <BR>
  188. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Load the specified class by name, taking into account added classpath
  189. and reloaded classes, etc.</TD>
  190. </TR>
  191. <TR BGCOLOR="white" CLASS="TableRowColor">
  192. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  193. <CODE>protected &nbsp;void</CODE></FONT></TD>
  194. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#classLoaderChanged()">classLoaderChanged</A></B>()</CODE>
  195. <BR>
  196. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clear global class cache and notify namespaces to clear their
  197. class caches.</TD>
  198. </TR>
  199. <TR BGCOLOR="white" CLASS="TableRowColor">
  200. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  201. <CODE>&nbsp;java.lang.Class</CODE></FONT></TD>
  202. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#defineClass(java.lang.String, byte[])">defineClass</A></B>(java.lang.String&nbsp;name,
  203. byte[]&nbsp;code)</CODE>
  204. <BR>
  205. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the BeanShell classloader.</TD>
  206. </TR>
  207. <TR BGCOLOR="white" CLASS="TableRowColor">
  208. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  209. <CODE>&nbsp;void</CODE></FONT></TD>
  210. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#doSuperImport()">doSuperImport</A></B>()</CODE>
  211. <BR>
  212. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Support for "import *;"
  213. Hide details in here as opposed to NameSpace.</TD>
  214. </TR>
  215. <TR BGCOLOR="white" CLASS="TableRowColor">
  216. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  217. <CODE>&nbsp;void</CODE></FONT></TD>
  218. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#dump(java.io.PrintWriter)">dump</A></B>(java.io.PrintWriter&nbsp;i)</CODE>
  219. <BR>
  220. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  221. </TR>
  222. <TR BGCOLOR="white" CLASS="TableRowColor">
  223. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  224. <CODE>&nbsp;java.lang.ClassLoader</CODE></FONT></TD>
  225. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#getBaseLoader()">getBaseLoader</A></B>()</CODE>
  226. <BR>
  227. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  228. </TR>
  229. <TR BGCOLOR="white" CLASS="TableRowColor">
  230. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  231. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  232. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#getClassNameByUnqName(java.lang.String)">getClassNameByUnqName</A></B>(java.lang.String&nbsp;name)</CODE>
  233. <BR>
  234. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the name or null if none is found,
  235. Throw an ClassPathException containing detail if name is ambigous.</TD>
  236. </TR>
  237. <TR BGCOLOR="white" CLASS="TableRowColor">
  238. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  239. <CODE>&nbsp;<A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/BshClassPath.html" title="class in org.gjt.sp.jedit.bsh.classpath">BshClassPath</A></CODE></FONT></TD>
  240. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#getClassPath()">getClassPath</A></B>()</CODE>
  241. <BR>
  242. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the full blown classpath.</TD>
  243. </TR>
  244. <TR BGCOLOR="white" CLASS="TableRowColor">
  245. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  246. <CODE>&nbsp;java.net.URL</CODE></FONT></TD>
  247. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#getResource(java.lang.String)">getResource</A></B>(java.lang.String&nbsp;path)</CODE>
  248. <BR>
  249. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a resource URL using the BeanShell classpath</TD>
  250. </TR>
  251. <TR BGCOLOR="white" CLASS="TableRowColor">
  252. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  253. <CODE>&nbsp;java.io.InputStream</CODE></FONT></TD>
  254. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#getResourceAsStream(java.lang.String)">getResourceAsStream</A></B>(java.lang.String&nbsp;path)</CODE>
  255. <BR>
  256. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a resource stream using the BeanShell classpath</TD>
  257. </TR>
  258. <TR BGCOLOR="white" CLASS="TableRowColor">
  259. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  260. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  261. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#hasSuperImport()">hasSuperImport</A></B>()</CODE>
  262. <BR>
  263. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A "super import" ("import *") operation has been performed.</TD>
  264. </TR>
  265. <TR BGCOLOR="white" CLASS="TableRowColor">
  266. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  267. <CODE>&nbsp;void</CODE></FONT></TD>
  268. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#reloadAllClasses()">reloadAllClasses</A></B>()</CODE>
  269. <BR>
  270. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overlay the entire path with a new class loader.</TD>
  271. </TR>
  272. <TR BGCOLOR="white" CLASS="TableRowColor">
  273. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  274. <CODE>&nbsp;void</CODE></FONT></TD>
  275. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#reloadClasses(java.lang.String[])">reloadClasses</A></B>(java.lang.String[]&nbsp;classNames)</CODE>
  276. <BR>
  277. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reloading classes means creating a new classloader and using it
  278. whenever we are asked for classes in the appropriate space.</TD>
  279. </TR>
  280. <TR BGCOLOR="white" CLASS="TableRowColor">
  281. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  282. <CODE>&nbsp;void</CODE></FONT></TD>
  283. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#reloadPackage(java.lang.String)">reloadPackage</A></B>(java.lang.String&nbsp;pack)</CODE>
  284. <BR>
  285. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reload all classes in the specified package: e.g.</TD>
  286. </TR>
  287. <TR BGCOLOR="white" CLASS="TableRowColor">
  288. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  289. <CODE>&nbsp;void</CODE></FONT></TD>
  290. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#removeListener(org.gjt.sp.jedit.bsh.BshClassManager.Listener)">removeListener</A></B>(<A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.Listener.html" title="interface in org.gjt.sp.jedit.bsh">BshClassManager.Listener</A>&nbsp;l)</CODE>
  291. <BR>
  292. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  293. </TR>
  294. <TR BGCOLOR="white" CLASS="TableRowColor">
  295. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  296. <CODE>&nbsp;void</CODE></FONT></TD>
  297. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#reset()">reset</A></B>()</CODE>
  298. <BR>
  299. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clear all classloading behavior and class caches and reset to
  300. initial state.</TD>
  301. </TR>
  302. <TR BGCOLOR="white" CLASS="TableRowColor">
  303. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  304. <CODE>&nbsp;void</CODE></FONT></TD>
  305. <TD><CODE><B><A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html#setClassPath(java.net.URL[])">setClassPath</A></B>(java.net.URL[]&nbsp;cp)</CODE>
  306. <BR>
  307. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a new base classpath and create a new base classloader.</TD>
  308. </TR>
  309. </TABLE>
  310. &nbsp;<A NAME="methods_inherited_from_class_org.gjt.sp.jedit.bsh.BshClassManager"><!-- --></A>
  311. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  312. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  313. <TH ALIGN="left"><B>Methods inherited from class org.gjt.sp.jedit.bsh.<A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></B></TH>
  314. </TR>
  315. <TR BGCOLOR="white" CLASS="TableRowColor">
  316. <TD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#cacheClassInfo(java.lang.String, java.lang.Class)">cacheClassInfo</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#cacheResolvedMethod(java.lang.Class, java.lang.Class[], java.lang.reflect.Method)">cacheResolvedMethod</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#classExists(java.lang.String)">classExists</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#clearCaches()">clearCaches</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#cmUnavailable()">cmUnavailable</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#createClassManager(org.gjt.sp.jedit.bsh.Interpreter)">createClassManager</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#definingClass(java.lang.String)">definingClass</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#doneDefiningClass(java.lang.String)">doneDefiningClass</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#getClassBeingDefined(java.lang.String)">getClassBeingDefined</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#getResolvedMethod(java.lang.Class, java.lang.String, java.lang.Class[], boolean)">getResolvedMethod</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#isClassBeingDefined(java.lang.String)">isClassBeingDefined</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#loadSourceClass(java.lang.String)">loadSourceClass</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#noClassDefFound(java.lang.String, java.lang.Error)">noClassDefFound</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#plainClassForName(java.lang.String)">plainClassForName</A>, <A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#setClassLoader(java.lang.ClassLoader)">setClassLoader</A></CODE></TD>
  317. </TR>
  318. </TABLE>
  319. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  320. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  321. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  322. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  323. </TR>
  324. <TR BGCOLOR="white" CLASS="TableRowColor">
  325. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  326. </TR>
  327. </TABLE>
  328. &nbsp;
  329. <P>
  330. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  331. <A NAME="constructor_detail"><!-- --></A>
  332. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  333. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  334. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  335. <B>Constructor Detail</B></FONT></TH>
  336. </TR>
  337. </TABLE>
  338. <A NAME="ClassManagerImpl()"><!-- --></A><H3>
  339. ClassManagerImpl</H3>
  340. <PRE>
  341. public <B>ClassManagerImpl</B>()</PRE>
  342. <DL>
  343. <DD>Used by BshClassManager singleton constructor
  344. <P>
  345. </DL>
  346. <!-- ============ METHOD DETAIL ========== -->
  347. <A NAME="method_detail"><!-- --></A>
  348. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  349. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  350. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  351. <B>Method Detail</B></FONT></TH>
  352. </TR>
  353. </TABLE>
  354. <A NAME="classForName(java.lang.String)"><!-- --></A><H3>
  355. classForName</H3>
  356. <PRE>
  357. public java.lang.Class <B>classForName</B>(java.lang.String&nbsp;name)</PRE>
  358. <DL>
  359. <DD><B>Description copied from class: <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#classForName(java.lang.String)">BshClassManager</A></CODE></B></DD>
  360. <DD>Load the specified class by name, taking into account added classpath
  361. and reloaded classes, etc.
  362. Note: Again, this is just a trivial implementation.
  363. See bsh.classpath.ClassManagerImpl for the fully functional class
  364. management package.
  365. <P>
  366. <DD><DL>
  367. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#classForName(java.lang.String)">classForName</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  368. </DD>
  369. <DD><DL>
  370. <DT><B>Returns:</B><DD>the class or null</DL>
  371. </DD>
  372. </DL>
  373. <HR>
  374. <A NAME="getResource(java.lang.String)"><!-- --></A><H3>
  375. getResource</H3>
  376. <PRE>
  377. public java.net.URL <B>getResource</B>(java.lang.String&nbsp;path)</PRE>
  378. <DL>
  379. <DD>Get a resource URL using the BeanShell classpath
  380. <P>
  381. <DD><DL>
  382. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#getResource(java.lang.String)">getResource</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  383. </DD>
  384. <DD><DL>
  385. <DT><B>Parameters:</B><DD><CODE>path</CODE> - should be an absolute path</DL>
  386. </DD>
  387. </DL>
  388. <HR>
  389. <A NAME="getResourceAsStream(java.lang.String)"><!-- --></A><H3>
  390. getResourceAsStream</H3>
  391. <PRE>
  392. public java.io.InputStream <B>getResourceAsStream</B>(java.lang.String&nbsp;path)</PRE>
  393. <DL>
  394. <DD>Get a resource stream using the BeanShell classpath
  395. <P>
  396. <DD><DL>
  397. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#getResourceAsStream(java.lang.String)">getResourceAsStream</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  398. </DD>
  399. <DD><DL>
  400. <DT><B>Parameters:</B><DD><CODE>path</CODE> - should be an absolute path</DL>
  401. </DD>
  402. </DL>
  403. <HR>
  404. <A NAME="addClassPath(java.net.URL)"><!-- --></A><H3>
  405. addClassPath</H3>
  406. <PRE>
  407. public void <B>addClassPath</B>(java.net.URL&nbsp;path)
  408. throws java.io.IOException</PRE>
  409. <DL>
  410. <DD><DL>
  411. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#addClassPath(java.net.URL)">addClassPath</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  412. </DD>
  413. <DD><DL>
  414. <DT><B>Throws:</B>
  415. <DD><CODE>java.io.IOException</CODE></DL>
  416. </DD>
  417. </DL>
  418. <HR>
  419. <A NAME="reset()"><!-- --></A><H3>
  420. reset</H3>
  421. <PRE>
  422. public void <B>reset</B>()</PRE>
  423. <DL>
  424. <DD>Clear all classloading behavior and class caches and reset to
  425. initial state.
  426. <P>
  427. <DD><DL>
  428. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#reset()">reset</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  429. </DD>
  430. <DD><DL>
  431. </DL>
  432. </DD>
  433. </DL>
  434. <HR>
  435. <A NAME="setClassPath(java.net.URL[])"><!-- --></A><H3>
  436. setClassPath</H3>
  437. <PRE>
  438. public void <B>setClassPath</B>(java.net.URL[]&nbsp;cp)</PRE>
  439. <DL>
  440. <DD>Set a new base classpath and create a new base classloader.
  441. This means all types change.
  442. <P>
  443. <DD><DL>
  444. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#setClassPath(java.net.URL[])">setClassPath</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  445. </DD>
  446. <DD><DL>
  447. </DL>
  448. </DD>
  449. </DL>
  450. <HR>
  451. <A NAME="reloadAllClasses()"><!-- --></A><H3>
  452. reloadAllClasses</H3>
  453. <PRE>
  454. public void <B>reloadAllClasses</B>()
  455. throws <A HREF="../../../../../../org/gjt/sp/jedit/bsh/ClassPathException.html" title="class in org.gjt.sp.jedit.bsh">ClassPathException</A></PRE>
  456. <DL>
  457. <DD>Overlay the entire path with a new class loader.
  458. Set the base path to the user path + base path.
  459. No point in including the boot class path (can't reload thos).
  460. <P>
  461. <DD><DL>
  462. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#reloadAllClasses()">reloadAllClasses</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  463. </DD>
  464. <DD><DL>
  465. <DT><B>Throws:</B>
  466. <DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/ClassPathException.html" title="class in org.gjt.sp.jedit.bsh">ClassPathException</A></CODE></DL>
  467. </DD>
  468. </DL>
  469. <HR>
  470. <A NAME="reloadClasses(java.lang.String[])"><!-- --></A><H3>
  471. reloadClasses</H3>
  472. <PRE>
  473. public void <B>reloadClasses</B>(java.lang.String[]&nbsp;classNames)
  474. throws <A HREF="../../../../../../org/gjt/sp/jedit/bsh/ClassPathException.html" title="class in org.gjt.sp.jedit.bsh">ClassPathException</A></PRE>
  475. <DL>
  476. <DD>Reloading classes means creating a new classloader and using it
  477. whenever we are asked for classes in the appropriate space.
  478. For this we use a DiscreteFilesClassLoader
  479. <P>
  480. <DD><DL>
  481. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#reloadClasses(java.lang.String[])">reloadClasses</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  482. </DD>
  483. <DD><DL>
  484. <DT><B>Throws:</B>
  485. <DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/ClassPathException.html" title="class in org.gjt.sp.jedit.bsh">ClassPathException</A></CODE></DL>
  486. </DD>
  487. </DL>
  488. <HR>
  489. <A NAME="reloadPackage(java.lang.String)"><!-- --></A><H3>
  490. reloadPackage</H3>
  491. <PRE>
  492. public void <B>reloadPackage</B>(java.lang.String&nbsp;pack)
  493. throws <A HREF="../../../../../../org/gjt/sp/jedit/bsh/ClassPathException.html" title="class in org.gjt.sp.jedit.bsh">ClassPathException</A></PRE>
  494. <DL>
  495. <DD>Reload all classes in the specified package: e.g. "com.sun.tools"
  496. The special package name "<unpackaged>" can be used to refer
  497. to unpackaged classes.
  498. <P>
  499. <DD><DL>
  500. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#reloadPackage(java.lang.String)">reloadPackage</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  501. </DD>
  502. <DD><DL>
  503. <DT><B>Throws:</B>
  504. <DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/ClassPathException.html" title="class in org.gjt.sp.jedit.bsh">ClassPathException</A></CODE></DL>
  505. </DD>
  506. </DL>
  507. <HR>
  508. <A NAME="getClassPath()"><!-- --></A><H3>
  509. getClassPath</H3>
  510. <PRE>
  511. public <A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/BshClassPath.html" title="class in org.gjt.sp.jedit.bsh.classpath">BshClassPath</A> <B>getClassPath</B>()
  512. throws <A HREF="../../../../../../org/gjt/sp/jedit/bsh/ClassPathException.html" title="class in org.gjt.sp.jedit.bsh">ClassPathException</A></PRE>
  513. <DL>
  514. <DD>Get the full blown classpath.
  515. <P>
  516. <DD><DL>
  517. <DT><B>Throws:</B>
  518. <DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/ClassPathException.html" title="class in org.gjt.sp.jedit.bsh">ClassPathException</A></CODE></DL>
  519. </DD>
  520. </DL>
  521. <HR>
  522. <A NAME="doSuperImport()"><!-- --></A><H3>
  523. doSuperImport</H3>
  524. <PRE>
  525. public void <B>doSuperImport</B>()
  526. throws <A HREF="../../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></PRE>
  527. <DL>
  528. <DD>Support for "import *;"
  529. Hide details in here as opposed to NameSpace.
  530. <P>
  531. <DD><DL>
  532. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#doSuperImport()">doSuperImport</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  533. </DD>
  534. <DD><DL>
  535. <DT><B>Throws:</B>
  536. <DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/UtilEvalError.html" title="class in org.gjt.sp.jedit.bsh">UtilEvalError</A></CODE></DL>
  537. </DD>
  538. </DL>
  539. <HR>
  540. <A NAME="hasSuperImport()"><!-- --></A><H3>
  541. hasSuperImport</H3>
  542. <PRE>
  543. protected boolean <B>hasSuperImport</B>()</PRE>
  544. <DL>
  545. <DD><B>Description copied from class: <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#hasSuperImport()">BshClassManager</A></CODE></B></DD>
  546. <DD>A "super import" ("import *") operation has been performed.
  547. <P>
  548. <DD><DL>
  549. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#hasSuperImport()">hasSuperImport</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  550. </DD>
  551. <DD><DL>
  552. </DL>
  553. </DD>
  554. </DL>
  555. <HR>
  556. <A NAME="getClassNameByUnqName(java.lang.String)"><!-- --></A><H3>
  557. getClassNameByUnqName</H3>
  558. <PRE>
  559. public java.lang.String <B>getClassNameByUnqName</B>(java.lang.String&nbsp;name)
  560. throws <A HREF="../../../../../../org/gjt/sp/jedit/bsh/ClassPathException.html" title="class in org.gjt.sp.jedit.bsh">ClassPathException</A></PRE>
  561. <DL>
  562. <DD>Return the name or null if none is found,
  563. Throw an ClassPathException containing detail if name is ambigous.
  564. <P>
  565. <DD><DL>
  566. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#getClassNameByUnqName(java.lang.String)">getClassNameByUnqName</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  567. </DD>
  568. <DD><DL>
  569. <DT><B>Throws:</B>
  570. <DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/ClassPathException.html" title="class in org.gjt.sp.jedit.bsh">ClassPathException</A></CODE></DL>
  571. </DD>
  572. </DL>
  573. <HR>
  574. <A NAME="addListener(org.gjt.sp.jedit.bsh.BshClassManager.Listener)"><!-- --></A><H3>
  575. addListener</H3>
  576. <PRE>
  577. public void <B>addListener</B>(<A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.Listener.html" title="interface in org.gjt.sp.jedit.bsh">BshClassManager.Listener</A>&nbsp;l)</PRE>
  578. <DL>
  579. <DD><DL>
  580. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#addListener(org.gjt.sp.jedit.bsh.BshClassManager.Listener)">addListener</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  581. </DD>
  582. <DD><DL>
  583. </DL>
  584. </DD>
  585. </DL>
  586. <HR>
  587. <A NAME="removeListener(org.gjt.sp.jedit.bsh.BshClassManager.Listener)"><!-- --></A><H3>
  588. removeListener</H3>
  589. <PRE>
  590. public void <B>removeListener</B>(<A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.Listener.html" title="interface in org.gjt.sp.jedit.bsh">BshClassManager.Listener</A>&nbsp;l)</PRE>
  591. <DL>
  592. <DD><DL>
  593. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#removeListener(org.gjt.sp.jedit.bsh.BshClassManager.Listener)">removeListener</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  594. </DD>
  595. <DD><DL>
  596. </DL>
  597. </DD>
  598. </DL>
  599. <HR>
  600. <A NAME="getBaseLoader()"><!-- --></A><H3>
  601. getBaseLoader</H3>
  602. <PRE>
  603. public java.lang.ClassLoader <B>getBaseLoader</B>()</PRE>
  604. <DL>
  605. <DD><DL>
  606. </DL>
  607. </DD>
  608. </DL>
  609. <HR>
  610. <A NAME="defineClass(java.lang.String, byte[])"><!-- --></A><H3>
  611. defineClass</H3>
  612. <PRE>
  613. public java.lang.Class <B>defineClass</B>(java.lang.String&nbsp;name,
  614. byte[]&nbsp;code)</PRE>
  615. <DL>
  616. <DD>Get the BeanShell classloader.
  617. public ClassLoader getClassLoader() {
  618. }
  619. <P>
  620. <DD><DL>
  621. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#defineClass(java.lang.String, byte[])">defineClass</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  622. </DD>
  623. <DD><DL>
  624. </DL>
  625. </DD>
  626. </DL>
  627. <HR>
  628. <A NAME="classLoaderChanged()"><!-- --></A><H3>
  629. classLoaderChanged</H3>
  630. <PRE>
  631. protected void <B>classLoaderChanged</B>()</PRE>
  632. <DL>
  633. <DD>Clear global class cache and notify namespaces to clear their
  634. class caches.
  635. The listener list is implemented with weak references so that we
  636. will not keep every namespace in existence forever.
  637. <P>
  638. <DD><DL>
  639. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#classLoaderChanged()">classLoaderChanged</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  640. </DD>
  641. <DD><DL>
  642. </DL>
  643. </DD>
  644. </DL>
  645. <HR>
  646. <A NAME="dump(java.io.PrintWriter)"><!-- --></A><H3>
  647. dump</H3>
  648. <PRE>
  649. public void <B>dump</B>(java.io.PrintWriter&nbsp;i)</PRE>
  650. <DL>
  651. <DD><DL>
  652. <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html#dump(java.io.PrintWriter)">dump</A></CODE> in class <CODE><A HREF="../../../../../../org/gjt/sp/jedit/bsh/BshClassManager.html" title="class in org.gjt.sp.jedit.bsh">BshClassManager</A></CODE></DL>
  653. </DD>
  654. <DD><DL>
  655. </DL>
  656. </DD>
  657. </DL>
  658. <!-- ========= END OF CLASS DATA ========= -->
  659. <HR>
  660. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  661. <A NAME="navbar_bottom"><!-- --></A>
  662. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  663. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  664. <TR>
  665. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  666. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  667. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  668. <TR ALIGN="center" VALIGN="top">
  669. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  670. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  671. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  672. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ClassManagerImpl.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  673. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  674. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  675. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  676. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  677. </TR>
  678. </TABLE>
  679. </TD>
  680. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  681. </EM>
  682. </TD>
  683. </TR>
  684. <TR>
  685. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  686. &nbsp;<A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/BshClassPath.MappingFeedback.html" title="interface in org.gjt.sp.jedit.bsh.classpath"><B>PREV CLASS</B></A>&nbsp;
  687. &nbsp;<A HREF="../../../../../../org/gjt/sp/jedit/bsh/classpath/ClassPathListener.html" title="interface in org.gjt.sp.jedit.bsh.classpath"><B>NEXT CLASS</B></A></FONT></TD>
  688. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  689. <A HREF="../../../../../../index.html?org/gjt/sp/jedit/bsh/classpath/ClassManagerImpl.html" target="_top"><B>FRAMES</B></A> &nbsp;
  690. &nbsp;<A HREF="ClassManagerImpl.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  691. &nbsp;
  692. <NOSCRIPT>
  693. <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  694. </NOSCRIPT>
  695. </FONT></TD>
  696. </TR>
  697. <TR>
  698. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  699. SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_org.gjt.sp.jedit.bsh.BshClassManager">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.gjt.sp.jedit.bsh.BshClassManager">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  700. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  701. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  702. </TR>
  703. </TABLE>
  704. <A NAME="skip-navbar_bottom"></A>
  705. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  706. <HR>
  707. </BODY>
  708. </HTML>