org.hudsonci.maven.plugin.dependencymonitor
Interface ProjectArtifactCache

All Known Implementing Classes:
ProjectArtifactCacheImpl

public interface ProjectArtifactCache

Provides caching of project produced and consumed artifacts.

Since:
2.1.0
Author:
Jason Dillon

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.
 

Method Detail

clear

void clear()
Clear the cache.


rebuild

void rebuild()
Rebuild the cache.


updateArtifacts

boolean updateArtifacts(AbstractBuild build)
Update the cache for artifacts in the given build.


updateArtifacts

boolean updateArtifacts(AbstractProject project,
                        ArtifactsPair artifacts)
Update the cache for a projects artifacts.


getArtifacts

ArtifactsPair getArtifacts(AbstractProject project)
Get the artifacts pair for a given project.


purgeArtifacts

void purgeArtifacts(AbstractProject project)
Purge all artifacts for the given project.


getProducedArtifacts

Collection<MavenCoordinatesDTO> getProducedArtifacts(AbstractProject project)
Get artifacts produced by the given project.


getConsumedArtifacts

Collection<MavenCoordinatesDTO> getConsumedArtifacts(AbstractProject project)
Get artifacts consumed by the given project.


getArtifactProducers

Collection<AbstractProject> getArtifactProducers()
Get all artifact producing projects.


getArtifactConsumers

Collection<AbstractProject> getArtifactConsumers()
Get all artifact consuming projects.


getProducersOf

Collection<AbstractProject> getProducersOf(MavenCoordinatesDTO artifact)
Get the projects which produce the given artifact.


getConsumersOf

Collection<AbstractProject> getConsumersOf(MavenCoordinatesDTO artifact)
Get the projects which consume the given artifact.


isProduced

boolean isProduced(MavenCoordinatesDTO artifact)
Check if the given artifact is produced by any projects.


isConsumed

boolean isConsumed(MavenCoordinatesDTO artifact)
Check if the given artifact is consumed by any projects.



Copyright © 2004-2011 Hudson. All Rights Reserved.