org.abstracthorizon.extend.server.support
Class ClassUtils.LocalURLClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.abstracthorizon.extend.server.support.ClassUtils.LocalURLClassLoader
All Implemented Interfaces:
LocalClassLoader
Enclosing class:
ClassUtils

public static class ClassUtils.LocalURLClassLoader
extends URLClassLoader
implements LocalClassLoader


Constructor Summary
ClassUtils.LocalURLClassLoader(URL[] urls)
           
ClassUtils.LocalURLClassLoader(URL[] urls, ClassLoader parent)
           
ClassUtils.LocalURLClassLoader(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory)
           
 
Method Summary
 Class<?> findClass(String name)
           
 URL getLocalResource(String name)
           
 Enumeration<URL> getLocalResources(String name)
           
 Class<?> loadClass(String name, boolean resolve)
           
 Class<?> loadLocalClass(String name)
           
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, 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
 

Constructor Detail

ClassUtils.LocalURLClassLoader

public ClassUtils.LocalURLClassLoader(URL[] urls,
                                      ClassLoader parent)

ClassUtils.LocalURLClassLoader

public ClassUtils.LocalURLClassLoader(URL[] urls)

ClassUtils.LocalURLClassLoader

public ClassUtils.LocalURLClassLoader(URL[] urls,
                                      ClassLoader parent,
                                      URLStreamHandlerFactory factory)
Method Detail

findClass

public Class<?> findClass(String name)
                   throws ClassNotFoundException
Overrides:
findClass in class URLClassLoader
Throws:
ClassNotFoundException

loadClass

public Class<?> loadClass(String name,
                          boolean resolve)
                   throws ClassNotFoundException
Overrides:
loadClass in class ClassLoader
Throws:
ClassNotFoundException

loadLocalClass

public Class<?> loadLocalClass(String name)
                        throws ClassNotFoundException
Specified by:
loadLocalClass in interface LocalClassLoader
Throws:
ClassNotFoundException

getLocalResource

public URL getLocalResource(String name)
Specified by:
getLocalResource in interface LocalClassLoader

getLocalResources

public Enumeration<URL> getLocalResources(String name)
                                   throws IOException
Specified by:
getLocalResources in interface LocalClassLoader
Throws:
IOException


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.