Package com.sun.tools.ws
Class Invoker
- java.lang.Object
-
- com.sun.tools.ws.Invoker
-
public final class Invoker extends Object
Invokes JAX-WS tools in a special class loader that can pick up annotation processing classes, even if it's not available in the tool launcher classpath.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description static booleannoSystemProxiesEscape hatch to work around IBM JDK problem.
-
Constructor Summary
Constructors Constructor Description Invoker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckIfLoading21API()Returns true if the RI appears to be loading the JAX-WS 2.1 API.static booleancheckIfLoading22API()Returns true if the RI appears to be loading the JAX-WS 2.2 API.static ClassLoadercreateClassLoader(ClassLoader cl)Creates a class loader that can load JAXB/WS 2.2 API, and then return a class loader that can RI classes, which can see all those APIs.
-
-
-
Method Detail
-
checkIfLoading21API
public static boolean checkIfLoading21API()
Returns true if the RI appears to be loading the JAX-WS 2.1 API.
-
checkIfLoading22API
public static boolean checkIfLoading22API()
Returns true if the RI appears to be loading the JAX-WS 2.2 API.
-
createClassLoader
public static ClassLoader createClassLoader(ClassLoader cl) throws ClassNotFoundException, IOException
Creates a class loader that can load JAXB/WS 2.2 API, and then return a class loader that can RI classes, which can see all those APIs.- Throws:
ClassNotFoundExceptionIOException
-
-