org.lexevs.system.utility
Class MyClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.lexevs.system.utility.MyClassLoader

public class MyClassLoader
extends java.net.URLClassLoader

My own class loader that defers to a URLClassLoader - picks up any jar files that are present in the runtime folder of a lexbig install - useful for picking up extensions and sql drivers (that aren't on the normal classpath).

Version:
subversion $Revision: $ checked in on $Date: $
Author:
Dan Armbrust, Thomas Johnson, Jesse Erdmann, Sridhar Dwarkanath

Method Summary
 java.util.List<ExtensionDescription> getExtensionDescriptions()
          Gets the extension descriptions.
static MyClassLoader instance()
          Deprecated. 
static MyClassLoader instance(SystemVariables systemVariables, LgLoggerIF logger)
          Deprecated. 
 java.lang.Class<?> loadClass(java.lang.String name)
           
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getExtensionDescriptions

public java.util.List<ExtensionDescription> getExtensionDescriptions()
Gets the extension descriptions.

Returns:
the extension descriptions

instance

@Deprecated
public static MyClassLoader instance()
Deprecated. 

Instance.

Returns:
the my class loader

instance

@Deprecated
public static MyClassLoader instance(SystemVariables systemVariables,
                                                LgLoggerIF logger)
Deprecated. 

Instance.

Parameters:
systemVariables - the system variables
logger - the logger
Returns:
the my class loader

loadClass

public java.lang.Class<?> loadClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
Overrides:
loadClass in class java.lang.ClassLoader
Throws:
java.lang.ClassNotFoundException

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.