com.sun.tools.xjc.api.util
Class ApClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by com.sun.tools.xjc.api.util.ApClassLoader

public final class ApClassLoader
extends java.net.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

Constructor Summary
ApClassLoader(java.lang.ClassLoader parent, java.lang.String[] packagePrefixes)
           
 
Method Summary
 java.lang.Class loadClass(java.lang.String className)
           
 
Methods inherited from class java.net.URLClassLoader
findResource, findResources, getURLs, newInstance, newInstance
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApClassLoader

public ApClassLoader(@Nullable
                     java.lang.ClassLoader parent,
                     java.lang.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
Method Detail

loadClass

public java.lang.Class loadClass(java.lang.String className)
                          throws java.lang.ClassNotFoundException
Overrides:
loadClass in class java.lang.ClassLoader
Throws:
java.lang.ClassNotFoundException