Package org.openrewrite.maven.cache
Class CompositeMavenPomCache
java.lang.Object
org.openrewrite.maven.cache.CompositeMavenPomCache
- All Implemented Interfaces:
MavenPomCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Optional<MavenMetadata>getMavenMetadata(URI repo, GroupArtifactVersion gav) @Nullable Optional<MavenRepository>getNormalizedRepository(MavenRepository repository) @Nullable ResolvedPomgetResolvedDependencyPom(ResolvedGroupArtifactVersion dependency) voidputMavenMetadata(URI repo, GroupArtifactVersion gav, MavenMetadata metadata) voidputNormalizedRepository(MavenRepository repository, MavenRepository normalized) voidputPom(ResolvedGroupArtifactVersion gav, Pom pom) voidputResolvedDependencyPom(ResolvedGroupArtifactVersion dependency, ResolvedPom resolved)
-
Constructor Details
-
CompositeMavenPomCache
public CompositeMavenPomCache()
-
-
Method Details
-
getResolvedDependencyPom
- Specified by:
getResolvedDependencyPomin interfaceMavenPomCache
-
putResolvedDependencyPom
- Specified by:
putResolvedDependencyPomin interfaceMavenPomCache
-
getMavenMetadata
- Specified by:
getMavenMetadatain interfaceMavenPomCache
-
putMavenMetadata
- Specified by:
putMavenMetadatain interfaceMavenPomCache
-
getPom
public @Nullable Optional<Pom> getPom(ResolvedGroupArtifactVersion gav) throws MavenDownloadingException - Specified by:
getPomin interfaceMavenPomCache- Throws:
MavenDownloadingException
-
putPom
- Specified by:
putPomin interfaceMavenPomCache
-
getNormalizedRepository
- Specified by:
getNormalizedRepositoryin interfaceMavenPomCache
-
putNormalizedRepository
- Specified by:
putNormalizedRepositoryin interfaceMavenPomCache
-