org.apache.cxf.maven_plugin
Class ClassLoaderSwitcher
java.lang.Object
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
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 |
ClassLoaderSwitcher
public ClassLoaderSwitcher(Log log)
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