Class RewriteClasspathJarClasspathLoader
java.lang.Object
org.openrewrite.java.internal.parser.RewriteClasspathJarClasspathLoader
- All Implemented Interfaces:
AutoCloseable,org.openrewrite.java.internal.parser.JavaParserClasspathLoader
public class RewriteClasspathJarClasspathLoader
extends Object
implements org.openrewrite.java.internal.parser.JavaParserClasspathLoader, AutoCloseable
As of 6.1.0, we are using
TypeTable to include JavaParser dependencies
as resources in the classpath, because including the whole JAR caused bloat in the size of recipe JARs
and would often get blocked by security scanners that weren't able to recognize that these JAR resources
were only used to parse templats and never executed and so didn't represent a security threat.
Provided that the type table concept works well, this class and the technique it enables will be removed in a future release.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RewriteClasspathJarClasspathLoader
public RewriteClasspathJarClasspathLoader(org.openrewrite.ExecutionContext ctx)
-
-
Method Details
-
load
- Specified by:
loadin interfaceorg.openrewrite.java.internal.parser.JavaParserClasspathLoader
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-