Lines Matching defs:loader

180         final Loader loader = new Loader( new String[] { "Bug4168625Class" }, new String[] { "Bug4168625Resource3_en_US", "Bug4168625Resource3_en_CA" });
181 final Class c = loader.loadClass("Bug4168625Class");
191 loader.logClasses("Initial lookup of "+resClassName+" generated the following loads:");
193 final Vector lastLoad = new Vector(loader.loadedClasses.size());
195 for (int i = loader.loadedClasses.size() - 1; i >= 0 ; i--) {
196 final Object item = loader.loadedClasses.elementAt(i);
197 loader.loadedClasses.removeElementAt(i);
198 if (loader.loadedClasses.contains(item)) {
209 loader.loadedClasses.removeAllElements();
211 loader.logClasses("Second lookup of "+resClassName+" generated the following loads:");
214 for (int i = 0; i < loader.loadedClasses.size(); i++) {
215 Object item = loader.loadedClasses.elementAt(i);
227 private Loader loader;
232 public ConcurrentLoadingThread(Loader loader, Bug4168625Getter test, Locale l, String resourceName) {
233 this.loader = loader;
238 public ConcurrentLoadingThread(Loader loader, Bug4168625Getter test, Locale l) {
239 this.loader = loader;
255 loader.notifyEveryone();
275 final Loader loader = new Loader( new String[] { "Bug4168625Class" }, new String[] { "Bug4168625Resource3_en_US", "Bug4168625Resource3_en_CA" });
276 final Class c = loader.loadClass("Bug4168625Class");
279 ConcurrentLoadingThread thread1 = new ConcurrentLoadingThread(loader, test, new Locale("en", "CA"));
280 ConcurrentLoadingThread thread2 = new ConcurrentLoadingThread(loader, test, new Locale("en", "IE"));
283 loader.waitForNotify(1); //wait for thread1 to do getBundle & block in loader
287 //Thread1 should be blocked inside getBundle at the class loader
304 final Loader loader = new Loader(classToLoad, classToWait);
305 final Class c = loader.loadClass("Bug4168625Class");
309 ConcurrentLoadingThread thread1 = new ConcurrentLoadingThread(loader, test, new Locale("en", "US"));
311 loader.waitForNotify(1); //wait for thread1 to do getBundle(en_US) & block in loader
314 loader.waitForNotify(2); //wait for thread1 to do getBundle(en) & block in loader
317 loader.waitForNotify(3); //wait for thread1 to do getBundle(en) & block in loader
332 * A simple class loader that loads classes from the current
333 * working directory. The loader will block the current thread
471 * Delegate loading to its parent class loader that loads the test classes.
472 * In othervm mode, the parent class loader is the system class loader;
473 * in samevm mode, the parent class loader is the jtreg URLClassLoader.