equal
deleted
inserted
replaced
70 * To use your own class loader you can set the "bcel.classloader" system property |
70 * To use your own class loader you can set the "bcel.classloader" system property |
71 * which defaults to "com.sun.org.apache.bcel.internal.util.ClassLoader", e.g., with |
71 * which defaults to "com.sun.org.apache.bcel.internal.util.ClassLoader", e.g., with |
72 * <pre>java com.sun.org.apache.bcel.internal.util.JavaWrapper -Dbcel.classloader=foo.MyLoader <real.class.name> [arguments]</pre> |
72 * <pre>java com.sun.org.apache.bcel.internal.util.JavaWrapper -Dbcel.classloader=foo.MyLoader <real.class.name> [arguments]</pre> |
73 * </p> |
73 * </p> |
74 * |
74 * |
|
75 * @version $Id: JavaWrapper.java,v 1.3 2007-07-19 04:34:52 ofung Exp $ |
75 * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> |
76 * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> |
76 * @see ClassLoader |
77 * @see ClassLoader |
77 */ |
78 */ |
78 public class JavaWrapper { |
79 public class JavaWrapper { |
79 private java.lang.ClassLoader loader; |
80 private java.lang.ClassLoader loader; |
80 |
81 |
81 private static java.lang.ClassLoader getClassLoader() { |
82 private static java.lang.ClassLoader getClassLoader() { |
82 String s = System.getProperty("bcel.classloader"); |
83 String s = SecuritySupport.getSystemProperty("bcel.classloader"); |
83 |
84 |
84 if((s == null) || "".equals(s)) |
85 if((s == null) || "".equals(s)) |
85 s = "com.sun.org.apache.bcel.internal.util.ClassLoader"; |
86 s = "com.sun.org.apache.bcel.internal.util.ClassLoader"; |
86 |
87 |
87 try { |
88 try { |