Apache CXF API

org.apache.cxf.maven_plugin
Class ClassLoaderSwitcher

java.lang.Object
  extended by org.apache.cxf.maven_plugin.ClassLoaderSwitcher

public class ClassLoaderSwitcher
extends Object

Manages switching to the classloader needed for creating the java sources and restoring the old classloader when finished


Constructor Summary
ClassLoaderSwitcher(Log log)
           
 
Method Summary
 void restoreClassLoader()
          Restore the old classloader
 void switchClassLoader(MavenProject project, boolean useCompileClasspath, File classesDir)
          Create and set the classloader that is needed for creating the java sources from wsdl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderSwitcher

public ClassLoaderSwitcher(Log log)
Method Detail

switchClassLoader

public void switchClassLoader(MavenProject project,
                              boolean useCompileClasspath,
                              File classesDir)
Create and set the classloader that is needed for creating the java sources from wsdl

Parameters:
project -
useCompileClasspath -
classesDir -

restoreClassLoader

public void restoreClassLoader()
Restore the old classloader


Apache CXF API

Apache CXF