com.softsynth.jmsl.util
Class JMSLClassLoader

java.lang.Object
  extended by 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: didkovn@mail.rockefeller.edu, (c) 2004 Nick Didkovsky, all rights reserved.

Constructor Summary
JMSLClassLoader()
           
 
Method Summary
static java.lang.Class load(java.lang.String classname)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSLClassLoader

public JMSLClassLoader()
Method Detail

load

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