|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hudsonci.maven.plugin.dependencymonitor.internal.ProjectArtifactCacheImpl
@Singleton public class ProjectArtifactCacheImpl
Default implementation of ProjectArtifactCache.
| Constructor Summary | |
|---|---|
ProjectArtifactCacheImpl(ProjectService projectService,
ArtifactsExtractor artifactsExtractor)
|
|
| Method Summary | |
|---|---|
void |
clear()
Clear the cache. |
Collection<AbstractProject> |
getArtifactConsumers()
Get all artifact consuming projects. |
Collection<AbstractProject> |
getArtifactProducers()
Get all artifact producing projects. |
ArtifactsPair |
getArtifacts(AbstractProject project)
Get the artifacts pair for a given project. |
Collection<MavenCoordinatesDTO> |
getConsumedArtifacts(AbstractProject project)
Get artifacts consumed by the given project. |
Collection<AbstractProject> |
getConsumersOf(MavenCoordinatesDTO artifact)
Get the projects which consume the given artifact. |
Collection<MavenCoordinatesDTO> |
getProducedArtifacts(AbstractProject project)
Get artifacts produced by the given project. |
Collection<AbstractProject> |
getProducersOf(MavenCoordinatesDTO artifact)
Get the projects which produce the given artifact. |
boolean |
isConsumed(MavenCoordinatesDTO artifact)
Check if the given artifact is consumed by any projects. |
boolean |
isProduced(MavenCoordinatesDTO artifact)
Check if the given artifact is produced by any projects. |
void |
purgeArtifacts(AbstractProject project)
Purge all artifacts for the given project. |
void |
rebuild()
Rebuild the cache. |
boolean |
updateArtifacts(AbstractBuild build)
Update the cache for artifacts in the given build. |
boolean |
updateArtifacts(AbstractProject project,
ArtifactsPair artifacts)
Update the cache for a projects artifacts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public ProjectArtifactCacheImpl(ProjectService projectService,
ArtifactsExtractor artifactsExtractor)
| Method Detail |
|---|
public ArtifactsPair getArtifacts(AbstractProject project)
ProjectArtifactCache
getArtifacts in interface ProjectArtifactCachepublic Collection<MavenCoordinatesDTO> getProducedArtifacts(AbstractProject project)
ProjectArtifactCache
getProducedArtifacts in interface ProjectArtifactCachepublic Collection<MavenCoordinatesDTO> getConsumedArtifacts(AbstractProject project)
ProjectArtifactCache
getConsumedArtifacts in interface ProjectArtifactCachepublic Collection<AbstractProject> getArtifactProducers()
ProjectArtifactCache
getArtifactProducers in interface ProjectArtifactCachepublic Collection<AbstractProject> getArtifactConsumers()
ProjectArtifactCache
getArtifactConsumers in interface ProjectArtifactCachepublic Collection<AbstractProject> getProducersOf(MavenCoordinatesDTO artifact)
ProjectArtifactCache
getProducersOf in interface ProjectArtifactCachepublic Collection<AbstractProject> getConsumersOf(MavenCoordinatesDTO artifact)
ProjectArtifactCache
getConsumersOf in interface ProjectArtifactCachepublic void clear()
ProjectArtifactCache
clear in interface ProjectArtifactCachepublic void rebuild()
ProjectArtifactCache
rebuild in interface ProjectArtifactCachepublic boolean updateArtifacts(AbstractBuild build)
ProjectArtifactCache
updateArtifacts in interface ProjectArtifactCache
public boolean updateArtifacts(AbstractProject project,
ArtifactsPair artifacts)
ProjectArtifactCache
updateArtifacts in interface ProjectArtifactCachepublic void purgeArtifacts(AbstractProject project)
ProjectArtifactCache
purgeArtifacts in interface ProjectArtifactCachepublic boolean isProduced(MavenCoordinatesDTO artifact)
ProjectArtifactCache
isProduced in interface ProjectArtifactCachepublic boolean isConsumed(MavenCoordinatesDTO artifact)
ProjectArtifactCache
isConsumed in interface ProjectArtifactCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||