/** * Finds the specified class. The implementation in this class * fetches the class from the http server. If the class is * either <code>java.*</code>, <code>javax.*</code>, or * <code>Viewer</code>, then it is loaded by the parent class * loader. * * <p>This method can be overridden by a subclass of * <code>Viewer</code>. */ protected Class findClass(String name) throws ClassNotFoundException { Class c = null; if (name.startsWith("java.") || name.startsWith("javax.") || name.equals("javassist.tools.web.Viewer")) c = findSystemClass(name); if (c == null) try { byte[] b = fetchClass(name); if (b != null) c = defineClass(name, b, 0, b.length); } catch (Exception e) { } return c; }
/** * Finds the specified class. The implementation in this class * fetches the class from the http server. If the class is * either <code>java.*</code>, <code>javax.*</code>, or * <code>Viewer</code>, then it is loaded by the parent class * loader. * * <p>This method can be overridden by a subclass of * <code>Viewer</code>. */ @Override protected Class<?> findClass(String name) throws ClassNotFoundException { Class<?> c = null; if (name.startsWith("java.") || name.startsWith("javax.") || name.equals("javassist.tools.web.Viewer")) c = findSystemClass(name); if (c == null) try { byte[] b = fetchClass(name); if (b != null) c = defineClass(name, b, 0, b.length); } catch (Exception e) { } return c; }
/** * Finds the specified class. The implementation in this class * fetches the class from the http server. If the class is * either <code>java.*</code>, <code>javax.*</code>, or * <code>Viewer</code>, then it is loaded by the parent class * loader. * * <p>This method can be overridden by a subclass of * <code>Viewer</code>. */ protected Class findClass(String name) throws ClassNotFoundException { Class c = null; if (name.startsWith("java.") || name.startsWith("javax.") || name.equals("javassist.tools.web.Viewer")) c = findSystemClass(name); if (c == null) try { byte[] b = fetchClass(name); if (b != null) c = defineClass(name, b, 0, b.length); } catch (Exception e) { } return c; }
/** * Finds the specified class. The implementation in this class * fetches the class from the http server. If the class is * either <code>java.*</code>, <code>javax.*</code>, or * <code>Viewer</code>, then it is loaded by the parent class * loader. * * <p>This method can be overridden by a subclass of * <code>Viewer</code>. */ protected Class findClass(String name) throws ClassNotFoundException { Class c = null; if (name.startsWith("java.") || name.startsWith("javax.") || name.equals("javassist.tools.web.Viewer")) c = findSystemClass(name); if (c == null) try { byte[] b = fetchClass(name); if (b != null) c = defineClass(name, b, 0, b.length); } catch (Exception e) { } return c; }
/** * Finds the specified class. The implementation in this class * fetches the class from the http server. If the class is * either <code>java.*</code>, <code>javax.*</code>, or * <code>Viewer</code>, then it is loaded by the parent class * loader. * * <p>This method can be overridden by a subclass of * <code>Viewer</code>. */ protected Class findClass(String name) throws ClassNotFoundException { Class c = null; if (name.startsWith("java.") || name.startsWith("javax.") || name.equals("javassist.tools.web.Viewer")) c = findSystemClass(name); if (c == null) try { byte[] b = fetchClass(name); if (b != null) c = defineClass(name, b, 0, b.length); } catch (Exception e) { } return c; }
/** * Finds the specified class. The implementation in this class * fetches the class from the http server. If the class is * either <code>java.*</code>, <code>javax.*</code>, or * <code>Viewer</code>, then it is loaded by the parent class * loader. * * <p>This method can be overridden by a subclass of * <code>Viewer</code>. */ protected Class findClass(String name) throws ClassNotFoundException { Class c = null; if (name.startsWith("java.") || name.startsWith("javax.") || name.equals("javassist.tools.web.Viewer")) c = findSystemClass(name); if (c == null) try { byte[] b = fetchClass(name); if (b != null) c = defineClass(name, b, 0, b.length); } catch (Exception e) { } return c; }
/** * Finds the specified class. The implementation in this class * fetches the class from the http server. If the class is * either <code>java.*</code>, <code>javax.*</code>, or * <code>Viewer</code>, then it is loaded by the parent class * loader. * * <p>This method can be overridden by a subclass of * <code>Viewer</code>. */ protected Class findClass(String name) throws ClassNotFoundException { Class c = null; if (name.startsWith("java.") || name.startsWith("javax.") || name.equals("javassist.tools.web.Viewer")) c = findSystemClass(name); if (c == null) try { byte[] b = fetchClass(name); if (b != null) c = defineClass(name, b, 0, b.length); } catch (Exception e) { } return c; }