org.tinygroup.convert.xsdjava
Class ClassLoaderBuilder
java.lang.Object
org.tinygroup.convert.xsdjava.ClassLoaderBuilder
public final class ClassLoaderBuilder
- extends Object
Creates a class loader configured to run XJC 1.0/2.0 safely without
interference with JAXB 2.0 API in Mustang.
- Author:
- Kohsuke Kawaguchi
|
Field Summary |
static boolean |
NO_HACK
Escape hatch in case this class loader hack breaks. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_HACK
public static final boolean NO_HACK
- Escape hatch in case this class loader hack breaks.
createProtectiveClassLoader
protected static ClassLoader createProtectiveClassLoader(ClassLoader cl,
String string)
throws ClassNotFoundException,
MalformedURLException
- Creates a new class loader that eventually delegates to the given
ClassLoader
such that XJC can be loaded by using this classloader.
- Parameters:
string - Either "1.0" or "2.0", indicating the version of the -source value.
- Throws:
ClassNotFoundException
MalformedURLException
Copyright © 2006–2015 TinyGroup. All rights reserved.