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