com.sun.tools.xjc.api.util
Class ApClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
com.sun.tools.xjc.api.util.ApClassLoader
public final class ApClassLoader
- extends URLClassLoader
ClassLoader that loads Annotation Processing and specified classes
both into the same classloader, so that they can reference each other.
- Since:
- 2.0 beta
- Author:
- Bhakti Mehta
| 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 |
ApClassLoader
public ApClassLoader(@Nullable
ClassLoader parent,
String[] packagePrefixes)
throws ToolsJarNotFoundException
- Parameters:
packagePrefixes - The package prefixes that are forced to resolve within this class loader.parent - The parent class loader to delegate to. Null to indicate bootstrap classloader.
- Throws:
ToolsJarNotFoundException
loadClass
public Class loadClass(String className)
throws ClassNotFoundException
- Overrides:
loadClass in class ClassLoader
- Throws:
ClassNotFoundException
findClass
protected Class findClass(String name)
throws ClassNotFoundException
- Overrides:
findClass in class URLClassLoader
- Throws:
ClassNotFoundException
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.