org.glassfish.internal.api
Interface DelegatingClassLoader.ClassFinder

All Known Implementing Classes:
ConnectorClassFinder
Enclosing class:
DelegatingClassLoader

public static interface DelegatingClassLoader.ClassFinder

findClass method of ClassLoader is usually a protected method. Calling loadClass on a ClassLoader is expenssive, as it searches the delegation hierarchy before searching in its private space. Hence we add this interface as an optimization.


Method Summary
 Class<?> findClass(String name)
           
 Class<?> findExistingClass(String name)
           
 URL findResource(String name)
           
 Enumeration<URL> findResources(String name)
           
 ClassLoader getParent()
           
 

Method Detail

getParent

ClassLoader getParent()
See Also:
ClassLoader.getParent()

findClass

Class<?> findClass(String name)
                   throws ClassNotFoundException
Throws:
ClassNotFoundException
See Also:
ClassLoader.findClass(String)

findExistingClass

Class<?> findExistingClass(String name)
See Also:
ClassLoader.findLoadedClass(String)

findResource

URL findResource(String name)
See Also:
ClassLoader.findResource(String)

findResources

Enumeration<URL> findResources(String name)
                               throws IOException
Throws:
IOException
See Also:
ClassLoader.findResources(String)


Copyright © 2012 GlassFish Community. All Rights Reserved.