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
  • 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