Lines Matching defs:loader
72 * loaders should be cached as separate objects, one for each loader.
74 * class loader to load its resources. It does not delegate resource
75 * loading to the system loader to load the class files, but loads
77 * defining class loader for the resources is different. If it
78 * delegated to the system loader to load the resources, the
80 * loader differered, and the resource would only be cached once.
90 //generate a unique hashcode for a class loader
104 * resource from a single loader. If we get the same resource
105 * from the same loader twice, we should get the same resource.
108 Loader loader = new Loader(false);
109 ResourceBundle b1 = getResourceBundle(loader, "Bug4179766Resource");
113 ResourceBundle b2 = getResourceBundle(loader, "Bug4179766Resource");
161 * Get a resource using a specified class loader to load the resource
163 private ResourceBundle getResourceBundle(Loader loader, String name) throws Exception {
165 Class c = loader.loadClass("Bug4179766Class");
169 errln("Class not found by custom class loader: "+name);
182 * [message][object's identity][object's class][object's loader][loaders hash][loaders identity]
200 * A simple class loader that loads classes from the current
201 * working directory. The hash code of the loader can be
209 * Create a new loader
221 * Return the hash code for this loader.
287 * Delegate loading to the system loader
302 * [loader identity][message][class identity]