Package org.apache.cxf.maven_plugin
Class ClassLoaderSwitcher
java.lang.Object
org.apache.cxf.maven_plugin.ClassLoaderSwitcher
Manages switching to the classloader needed for creating the java sources and restoring the old classloader
when finished
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Restore the old classloaderswitchClassLoader
(org.apache.maven.project.MavenProject project, boolean useCompileClasspath, File classesDir) Create and set the classloader that is needed for creating the java sources from wsdl
-
Constructor Details
-
ClassLoaderSwitcher
public ClassLoaderSwitcher(org.apache.maven.plugin.logging.Log log)
-
-
Method Details
-
switchClassLoader
public Set<URI> switchClassLoader(org.apache.maven.project.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
-