Package org.apache.maven.buildcache
Class CacheControllerImpl
- java.lang.Object
-
- org.apache.maven.buildcache.CacheControllerImpl
-
- All Implemented Interfaces:
CacheController
@Named public class CacheControllerImpl extends Object implements CacheController
CacheControllerImpl
-
-
Field Summary
Fields Modifier and Type Field Description static String
ERROR_MSG_RESTORATION_OUTSIDE_PROJECT
-
Constructor Summary
Constructors Constructor Description CacheControllerImpl(org.apache.maven.project.MavenProjectHelper projectHelper, org.apache.maven.repository.RepositorySystem repoSystem, org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager, XmlService xmlService, LocalCacheRepository localCache, RemoteCacheRepository remoteCache, CacheConfig cacheConfig, ProjectInputCalculator projectInputCalculator, RestoredArtifactHandler restoreArtifactHandler, LifecyclePhasesHelper lifecyclePhasesHelper, org.apache.maven.execution.MavenSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attachGeneratedSources(org.apache.maven.project.MavenProject project)
CacheResult
findCachedBuild(org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, List<org.apache.maven.plugin.MojoExecution> mojoExecutions, boolean skipCache)
boolean
isForcedExecution(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.MojoExecution execution)
void
produceDiffReport(CacheResult cacheResult, Build build)
ArtifactRestorationReport
restoreProjectArtifacts(CacheResult cacheResult)
void
save(CacheResult cacheResult, List<org.apache.maven.plugin.MojoExecution> mojoExecutions, Map<String,org.apache.maven.execution.MojoExecutionEvent> executionEvents)
void
saveCacheReport(org.apache.maven.execution.MavenSession session)
-
-
-
Field Detail
-
ERROR_MSG_RESTORATION_OUTSIDE_PROJECT
public static final String ERROR_MSG_RESTORATION_OUTSIDE_PROJECT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CacheControllerImpl
@Inject public CacheControllerImpl(org.apache.maven.project.MavenProjectHelper projectHelper, org.apache.maven.repository.RepositorySystem repoSystem, org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager, XmlService xmlService, LocalCacheRepository localCache, RemoteCacheRepository remoteCache, CacheConfig cacheConfig, ProjectInputCalculator projectInputCalculator, RestoredArtifactHandler restoreArtifactHandler, LifecyclePhasesHelper lifecyclePhasesHelper, org.apache.maven.execution.MavenSession session)
-
-
Method Detail
-
findCachedBuild
@Nonnull public CacheResult findCachedBuild(org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, List<org.apache.maven.plugin.MojoExecution> mojoExecutions, boolean skipCache)
- Specified by:
findCachedBuild
in interfaceCacheController
-
restoreProjectArtifacts
public ArtifactRestorationReport restoreProjectArtifacts(CacheResult cacheResult)
- Specified by:
restoreProjectArtifacts
in interfaceCacheController
-
save
public void save(CacheResult cacheResult, List<org.apache.maven.plugin.MojoExecution> mojoExecutions, Map<String,org.apache.maven.execution.MojoExecutionEvent> executionEvents)
- Specified by:
save
in interfaceCacheController
-
produceDiffReport
public void produceDiffReport(CacheResult cacheResult, Build build)
-
isForcedExecution
public boolean isForcedExecution(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.MojoExecution execution)
- Specified by:
isForcedExecution
in interfaceCacheController
-
saveCacheReport
public void saveCacheReport(org.apache.maven.execution.MavenSession session)
- Specified by:
saveCacheReport
in interfaceCacheController
-
attachGeneratedSources
public void attachGeneratedSources(org.apache.maven.project.MavenProject project) throws IOException
- Throws:
IOException
-
-