Lines Matching refs:loader
93 * must be visible from the supplied class loader; no duplicates are
96 * @param loader
97 * the class loader that will define the proxy class
110 public static Class<?> getProxyClass(ClassLoader loader, Class<?>... interfaces)
112 if (loader == null) {
113 loader = ClassLoader.getSystemClassLoader();
122 Class<?> proxy = loader.proxyCache.get(interfacesSet);
139 if (!isVisibleToClassLoader(loader, c)) {
140 throw new IllegalArgumentException(c + " is not visible from class loader");
170 Class<?> result = generateProxy(name, interfaces, loader, methodsArray, exceptionsArray);
171 loader.proxyCache.put(interfacesSet, result);
175 private static boolean isVisibleToClassLoader(ClassLoader loader, Class<?> c) {
177 return loader == c.getClassLoader() || c == Class.forName(c.getName(), false, loader);
187 * supplied class loader; no duplicates are permitted. All non-public
190 * @param loader
191 * the class loader that will define the proxy class
205 public static Object newProxyInstance(ClassLoader loader, Class<?>[] interfaces,
214 return getProxyClass(loader, interfaces)
368 ClassLoader loader, ArtMethod[] methods,