Class JMSLClassLoader

java.lang.Object
com.softsynth.jmsl.util.JMSLClassLoader

public class JMSLClassLoader
extends java.lang.Object
Use JMSLClassLoader.load(classname) instead of Class.forName(classname).
JMSLClassLoader.load() first tries Class.forName(). If this fails, it tries Class.forName() using ClassLoader.getSystemClassLoader() This was developed so that jmsl.jar residing in ~/Library/Java/Extensions on Mac OSX could instantiate classes by name which were outside of this location. Classes in ~/Library/Java/Extensions are loaded by a different ClassLoader than the main Java application.
Author:
Nick Didkovsky, email: nick@didkovsky.com, (c) 2004 Nick Didkovsky, all rights reserved.
  • Constructor Summary

    Constructors
    Constructor Description
    JMSLClassLoader()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.Class load​(java.lang.String classname)  
    static void setDebug​(boolean b)  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JMSLClassLoader

      public JMSLClassLoader()
  • Method Details

    • setDebug

      public static void setDebug​(boolean b)
    • load

      public static java.lang.Class load​(java.lang.String classname) throws java.lang.ClassNotFoundException
      Throws:
      java.lang.ClassNotFoundException