com.sun.tools.ws
Class Invoker

java.lang.Object
  extended by com.sun.tools.ws.Invoker

public final class Invoker
extends Object

Invokes JAX-WS tools in a special class loader that can pick up APT classes, even if it's not available in the tool launcher classpath.


Field Summary
static String[] maskedPackages
          The list of package prefixes we want the MaskingClassLoader to prevent the parent classLoader from loading
static boolean noSystemProxies
          Escape hatch to work around IBM JDK problem.
 
Constructor Summary
Invoker()
           
 
Method Summary
static boolean checkIfLoading21API()
          Returns true if the RI appears to be loading the JAX-WS 2.1 API.
static ClassLoader createClassLoader(ClassLoader cl)
          Creates a classloader that can load JAXB/WS 2.1 API and tools.jar, and then return a classloader that can RI classes, which can see all those APIs and tools.jar.
(package private) static int invoke(String mainClass, String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maskedPackages

public static String[] maskedPackages
The list of package prefixes we want the MaskingClassLoader to prevent the parent classLoader from loading


noSystemProxies

public static boolean noSystemProxies
Escape hatch to work around IBM JDK problem. See http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?nav=false&forum=367&thread=164718&cat=10

Constructor Detail

Invoker

public Invoker()
Method Detail

invoke

static int invoke(String mainClass,
                  String[] args)
           throws Throwable
Throws:
Throwable

checkIfLoading21API

public static boolean checkIfLoading21API()
Returns true if the RI appears to be loading the JAX-WS 2.1 API.


createClassLoader

public static ClassLoader createClassLoader(ClassLoader cl)
                                     throws ClassNotFoundException,
                                            MalformedURLException,
                                            com.sun.tools.xjc.api.util.ToolsJarNotFoundException
Creates a classloader that can load JAXB/WS 2.1 API and tools.jar, and then return a classloader that can RI classes, which can see all those APIs and tools.jar.

Throws:
ClassNotFoundException
MalformedURLException
com.sun.tools.xjc.api.util.ToolsJarNotFoundException