Package org.glassfish.internal.api
Interface DelegatingClassLoader.ClassFinder
- 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
Modifier and TypeMethodDescriptionClass<?>Class<?>findExistingClass(String name) findResource(String name) findResources(String name)
-
Method Details
-
getParent
ClassLoader getParent()- See Also:
-
findClass
- Throws:
ClassNotFoundException- See Also:
-
findExistingClass
- See Also:
-
findResource
- See Also:
-
findResources
- Throws:
IOException- See Also:
-